|
Well that didn't work either. I gave up on QShell and just tried a java HelloWorld from a command line (after changing my ENVVAR to .) ... That didn't work either. I give up. But a question I do have is IBM supplies it's own version of HelloWorld (called Hello) with the OS and the source and class files are in /QIBM/Proddata/Java400. Fore some reason, when you do a java Hello from a command line, this one works. Go figure! Thanks to all for responding .. -----Original Message----- From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Joe Pluta Sent: Tuesday, September 23, 2003 3:22 PM To: 'Java Programming on and around the iSeries / AS400' Subject: RE: Frustration!! > From: Steven Molinaro > > Thanks for the reply. I tried what you said. I did a cd /Java and then > "set CLASSPATH=.", followed by java HelloWorld and I still got the same > errors. I apologize if I am missing an obvious step. Ugh. It's been a long time since I tried this on the host. I rarely run from QShell these days, partially because of issues like this. After some playing around, I found that "set CLASSPATH" doesn't work inside of QShell. In fact, the set command with a parameter doesn't do much of anything (without parms it shows the current list of environment variables). So, you have to set the CLASSPATH *before* you start QShell, by using the WRKENVVAR command. Now, I don't know why your initial value is pointing to the jt400/lib folder, but as long as you don't care about that, simply use WRKENVVAR to replace your CLASSPATH with "." (no quotes). Then you should be able to go into QShell, cd /Java, and then run your HelloWorld program. I just did it, and it works fine. (The memory begins to clear a little. This all sound vaguely familiar.) Good luck! Joe _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/java400-l or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.
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.