jdk compatibility for atg 2007.1

View: New views
3 Messages — Rating Filter:   Alert me  

jdk compatibility for atg 2007.1

by RJ. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi I am running atg 2007.1 in jdk 1.5.0_14-b03 and getting
Exception in thread "main" java.lang.UnsupportedClassVersionError: atg/appassembly/Main (Unsupported major.minor version 49.0)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
===============================================================================

Re: jdk compatibility for atg 2007.1

by RJ. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

also i am using jboss 4.0.5ga

Re: jdk compatibility for atg 2007.1

by george_o :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think that based on your error, you are using the staryDynamoOnJBoss command (or runAssembler), and that is where you get the error, not when you are starting JBoss, correct?

In that case, I suspect that you have a 1.4 JDK in your PATH or you have the JAVA_VM variable pointing to a 1.4 JDK.

In the command prompt where you run startDynamoOnJBoss or runAssembler, set the JAVA_VM variable to point to your 1.5 JDK first and then see if you still encounter problems. For example, in Windows:

set JAVA_VM=c:\jdk1.5.0_11\bin\java.exe

ATG 2007.1 was compiled and only works with JDK 1.5.

- George
LightInTheBox - Buy quality products at wholesale price