Hello! I'm an AS400 novice, with an old v4r5 machine. I've managed to install the licenced programs "5769JC1 AS/400 Toolbox for Java" and "5769JV1 AS/400 Developer Kit for Java" from the os cds, but when it comes to trying to trying to running 'java' or 'javac' from a qsh, things don't proceed as I expect them to.
> java com.ibm.as400.system.Hello
...results in...
Java program completed with exit code 1
...which sounds like 'an error has occured' to me.
Trying to check the java version...
> java -version
java: 001-0070 Exception JVAB544 not expected.
¢
> java -showversion
-showversion: argument not valid
java: 001-0070 Exception JVAB544 not expected.
...kind of makes me think that the executable is there to be run, because it appears to be validating command line parameters, but it doesn't print the version number, and the JVAB544 error only appears a couple of times on Google with little to help.
When creating my own HelloWorld.java, the javac compiler just seems to ignore it, and doesn't produce a class file...
> cat HelloWorld.java
class HelloWorld{ public static void main (String args[]) { System.out.println("Hello there world!"); } }
¢
> javac HelloWorld.java
¢
I think my classpath is set up ok...
> set
CLASSPATH=.;/usr/bin;QIBM/ProdData/HTTP/Public/jt400/lib
(usr/bin is just a conveniently short path where I've dumped the hello world java file)
I've googled and googled but seem to have hit a brick wall... any ideas what I could try? I think I've followed all the instructions to correctly install the licenced programs, but now I'm at a loss. Help!
Thanks, Chris.
> java com.ibm.as400.system.Hello
...results in...
Java program completed with exit code 1
...which sounds like 'an error has occured' to me.
Trying to check the java version...
> java -version
java: 001-0070 Exception JVAB544 not expected.
¢
> java -showversion
-showversion: argument not valid
java: 001-0070 Exception JVAB544 not expected.
...kind of makes me think that the executable is there to be run, because it appears to be validating command line parameters, but it doesn't print the version number, and the JVAB544 error only appears a couple of times on Google with little to help.
When creating my own HelloWorld.java, the javac compiler just seems to ignore it, and doesn't produce a class file...
> cat HelloWorld.java
class HelloWorld{ public static void main (String args[]) { System.out.println("Hello there world!"); } }
¢
> javac HelloWorld.java
¢
I think my classpath is set up ok...
> set
CLASSPATH=.;/usr/bin;QIBM/ProdData/HTTP/Public/jt400/lib
(usr/bin is just a conveniently short path where I've dumped the hello world java file)
I've googled and googled but seem to have hit a brick wall... any ideas what I could try? I think I've followed all the instructions to correctly install the licenced programs, but now I'm at a loss. Help!
Thanks, Chris.
Comment