I am trying to get the netrexx 2.05 compiler to run on a RH5 linux with SDK 6. The compiler fails because it can't find java.lang.object.
According to the netrexx docs it should be in rt.jar.
I added rt.jar to the CLASSPATH env. variable with no effect.
I Unzip-ed rt.jar and I found no java.lang.object?
Is this as expected?
SDK 6 was installed without errors from: ibm-java-sdk-6.0-10.0-linux-s390x.bin.
Pinned topic SDK 6 for s390x, netrexx compile, java.lang.object not found
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-02-12T21:56:46Z at 2012-02-12T21:56:46Z by brataj
brataj 100000816341 Posts
Re: SDK 6 for s390x, netrexx compile, java.lang.object not found2012-02-08T13:35:15ZThis is the accepted answer. This is the accepted answer.Hi Paula,
I take it that it's not finding java.lang.Object rather than java.lang.object.
As a first step, make sure that your PATH points to the Java's bin directory, and that the LIBPATH and CLASSPATH do NOT mention anything related to Java, either the version you're currently using or any other version. In such an environment, you should be able to successfully run
If you have a stack traceback you can past here, it might help.
PS. java.lang.Object is in vm.jar.
pauladuijneveld 270000UBDR2 Posts
Re: SDK 6 for s390x, netrexx compile, java.lang.object not found2012-02-09T12:10:43ZThis is the accepted answer. This is the accepted answer.
- brataj 1000008163
I just managed to get it working.
The class file for java.lang.Object was indeed in vm.jar.
Exactly how the NetRexx compiler attempts to locate the relevant .jar files I don't know but in my installation the .jar file is apparently in an odd location: ..\jre\lib\s390x\compressedrefs\jclSC160\vm.jar.
Adding this to the CLASSPATH env.variable made the compiler run OK.
brataj 100000816341 Posts
Re: SDK 6 for s390x, netrexx compile, java.lang.object not found2012-02-12T21:56:46ZThis is the accepted answer. This is the accepted answer.
- pauladuijneveld 270000UBDR
The reference to .../compressedrefs/... indicates you're using the 64-bit version of Java. It's available in two variants where "compressed references" refers to a short pointer model that can be used in small to moderated sized heaps.
Anyway, you should not have to add any of the Java jar files to the classpath, the java command should take care of that. (The java command is invoked by the Netrexx compiler shell script.)
I don't have access to a Linux for System z system to check this out on, but it sounds to me like something is broken, most likely your install, as such a basic problem shouldn't have escaped the lab.
Had you tried running the java -version command I suggested before updating your classpath?