|
As a newbie to Java on the 400, I am perplexed by the classpath issue. I simply want to run the HelloWorld program from a command line. I have the source in /Java. From within QSH, I did a "cd /Java, and then a javac HelloWorld.java". The compile was successful and the class file now exists in /Java. When I do a java HelloWorld, from within QSH OR from a OS/400 command line, I get all sorts of errors. The first being "java.lang.NoClassDefFoundError". What I don't understand is if I am able to compile the program, doesn't that mean that the classpath is set correctly and I should be able to run it without any problems? Any suggestions would be greatly appreciated. By the way, if it helps, my CLASSPATH ENVVAR is set to "'/QIBM/ProdData/HTTP/Public/jt400/lib/'"
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.