batch file - java -cp on Windows problem -
can please tell me why java command in .bat file won't run java program on winxp? have jar files in folder called lib , class files in package folder mypackage.
java -cp ".;.\lib\poi-3.7-20101029.jar;.\lib\jsr173_1.0_api.jar;..." mypackage.myclasswithmain
i have tried sorts of things no avail. classnotfound error program attempts use of classes in jar files. so, think there's wrong -cp option. find main().
i want give program doesn't know thing computers, want them able double-click .bat file , go.
i wrote on mac without problem.
i bet moderator going slap me upside head question, did search extensively answer this.
thanks you! john
sorry, should have put in entire command line:
java -cp ".;.\libs\jsr173_1.0_api.jar;.\libs\poi-3.7-20101029.jar;.\libs\poi-ooxml-3.7-20101029.jar;.\libs\poi-ooxml-schemas-3.7-20101029.jar;.\libs\resolver.jar;.\libs\xbean.jar;.\libs\xbean_xpath.jar;.\libs\xmlbeans-qname.jar;.\libs\xmlpublic.jar" excelsifter.excelsiftercontroller
this on 1 line. tried / instead of \, didn't seem work. find on indicates windows have use backslash. dependencies here, far know. @ least mac doesn't complain when use same command.
my directory containing .bat file contains excelsifter package (a folder called excelsifter) , folder libs jar files in it. thanks, john
what libraries poi depend on? me single poi.jar seems naked... name of class not found? try search in other libraries.
Comments
Post a Comment