|
On 10/26/05, NGay@xxxxxxxxxxxxx <NGay@xxxxxxxxxxxxx> wrote: > > Dan, > > One mistake you're making is that you should not include the .class when > trying to run the program. i.e. do > > java CommandServerJDQ -cp "C:\Downloads\AS400\IBM Java\lib\jt400.jar" > instead of > java CommandServerJDQ.class -cp "C:\Downloads\AS400\IBM > Java\lib\jt400.jar" > > Otherwise it thinks you're trying to run a class called "class" from the > package called "CommandServerJDQ" (think of other class name like > java.lang.String). > > Just changing the above may or may not work... you might also need to > include the folder containing your class file in your classpath - it > doesn't necessarily always check the current folder. > > e.g. java CommandServerJDQ -cp > "C:\Java\Foldercontainingclassfile;C:\Downloads\AS400\IBM > Java\lib\jt400.jar" Ah, rookie mistakes! So I changed it per your instructions: java CommandServerJDQ -cp "C:\Downloads\AS400\IBM Java\lib\jt400.jar" ... and now get: Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/as400/access/ObjectDoesNotExistException Following your other suggestion, I included the path where the .class file exists, but am getting the same error as above. I suspect it is a problem with the way I am specifying the paths; both paths have blanks embedded in certain folder names, hence the use of double quotes. If the two paths were, for example, "C:\A A" and "C:\B B", how should the -cp be specified? TIA, Dan
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.