Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-12-2007
Vladja Vladja is offline
Registered User
 
Name: Vadimir Jovanovic
Organization: Geomant,Inc.
Project: Java client-server with ICE
 
Join Date: Jun 2007
Posts: 7
Not able to run java 1.4.2 app

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(Unknow n 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(Unknow n 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

Last edited by Vladja : 07-12-2007 at 08:53 AM.
Reply With Quote
  #2 (permalink)  
Old 07-12-2007
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,564
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.
Reply With Quote
  #3 (permalink)  
Old 07-12-2007
Vladja Vladja is offline
Registered User
 
Name: Vadimir Jovanovic
Organization: Geomant,Inc.
Project: Java client-server with ICE
 
Join Date: Jun 2007
Posts: 7
Thanks Benoit!

You guys really know it all!

Regards,
Vladimir
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Client side invocations from a Server app. vincei Comments 3 07-04-2007 10:27 AM
Does icegrid app remove, stop the servers of the app? Wilko Help Center 6 06-16-2007 12:03 PM
IceV3.11 java client and vc7.0Server : java.lang.NullPointerException? zhoubin Help Center 2 11-24-2006 04:03 AM
getifaddrs() does not supported by glibc, IceE fails to make app in /IceE/test syseeker Help Center 2 07-02-2006 10:27 PM
IceBox/ C# and App.config stephan Help Center 0 01-12-2006 05:56 AM


All times are GMT -4. The time now is 12:49 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.