Home Help Center

Not able to run java 1.4.2 app

VladjaVladja Member Vadimir JovanovicOrganization: Geomant,Inc.Project: Java client-server with ICE
Hi,

The java application that I'm using is made with java 1.6 (Eclipse 3.2.2 compliance level 5.0). The compilation with java 1.4.2 and compliance level 1.4 goes through just fine, but when I start the app I get the following errors:
java.lang.UnsupportedClassVersionError: Ice/Application (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at com.cmp.company_name.Client.main(Client.java:28)
Exception in thread "main"

Has this got something to do with the java version? The 1.4.2 should be supported by ICE 3.2.0 right?

Thanks,
Vladimir

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hello Vladimir,

    This error indicates that you're using the Java 5 Ice.jar file (which isn't compatible with the JDK 1.4.2). We provide two Ice for Java distributions, you should get the Java 2 distribution for the JDK 1.4.2, see our download page.

    If you're using a Unix or Windows binary distribution, you'll find the Java2 Ice.jar file in the lib/java2 directory of your binary distribution (for RPM distributions, you'll find it in the /usr/lib/Ice-3.2.0/java2 directory).

    Cheers,
    Benoit.
  • VladjaVladja Member Vadimir JovanovicOrganization: Geomant,Inc.Project: Java client-server with ICE
    Thanks Benoit!

    You guys really know it all!

    Regards,
    Vladimir
Sign In or Register to comment.