« Back to Technical Questions

AXP1.1.1 supports Java SDK 1.5?

Combination View Flat View Tree View
Threads [ Previous | Next ]
My application needs Java SDK 1.5, and doesn't work (see the following logs)

When I asked this question at AXP Training Seminor: the answer was " Yes, but there is some restrictions".

However, it seems that AXP1.1.1 doesn't support JDK1.5.
Any ideas?

//// Log ////
bash-2.05b# java MyApp
Exception in thread "main" java.lang.UnsupportedClassVersionError: (MyApp) bad major version at offset=6
java.lang.ClassLoader.defineClassImpl (ClassLoader.java)
java.lang.ClassLoader.defineClass (ClassLoader.java:226)
java.security.SecureClassLoader.defineClass (SecureClassLoader.java:109)
java.net.URLClassLoader.findClassImpl (URLClassLoader.java:1031)
java.net.URLClassLoader$4.run (URLClassLoader.java:549)
java.security.AccessController.doPrivileged (AccessController.java:213)
java.net.URLClassLoader.findClass (URLClassLoader.java:547)
com.ibm.oti.vm.URLSystemClassLoader.findClass (URLSystemClassLoader.java:27)
java.lang.ClassLoader.loadClass (ClassLoader.java:606)
com.ibm.oti.vm.URLSystemClassLoader.loadClass (URLSystemClassLoader.java:60)
java.lang.ClassLoader.loadClass (ClassLoader.java:563)
bash-2.05b#
////

Thanks in advance
Makoto

All versions of AXP support Java SDK 1.5 By default IBM J9 is preinstalled on AXP. You can download Java SDK 1.5 and package it using pkg_build script, install the app and set JAVA_HOME and it should work without issues.

Is it possible to package Java SDK 1.5 and install it on AXP as an add-on package and have application packages depend on the Java add-on? I'm thinking along the line of something like the AXP add-on packages and applications depending on them.

Yes, you can package Java SDK 1.5 as an add-on and have different applications specify it as a dependency.

Is there a special way to package/install the SDK so that it's an add-on package and not an application? I see the AXP add-ons don't run (when I do a show run, they don't appear). But the SDK I installed as an add-on (using software install add command) is running.

I tried having an application dependent on the SDK package and AXP complained about the application has swap space turned ON. So I repackaged it with swap space OFF. But when I do a show run, the application isn't running.

Thanks for the help.

Yes there is way to create add-ons so that they don't appear when you issue app-services command.

Step1. Install application A on AXP with connect console enabled i.e. postinstall script.
Step2. Package application B and specify application A as a dependency
Step3. Install application B

Now you will notice that when you issue app-service command you only see application A, however if you issue show software packages you will see both the applications.

Hence application B is now considered like an add-on.

Swap space option needs to be same for applications and dependencies otherwise the application wouldn't get installed.

Show run displays running config so I am not sure what you mean by application not running.