FYI ClassFoundError bad version information [message #203494] |
Thu, 05 April 2007 17:33 |
Eclipse User |
|
|
|
Originally posted by: timbeau.yahoo.co.uk
An FYI
I am building a J2ME application with Eclipse 3.1.1
I use an Ant build.xml to create my JAR (If someone can say how this is
done direct with Eclipse to create a MIDP2.0 JAR, I'd be interested to
know how...).
The package references the 1.4.2 JRE (and the MIDP2.0, btw).
I have recently upgraded my OSX to use JRE 1.5.0, but have selected the
1.4.2 in Eclipse Properties>Java>InstalledJREs and 1.4 as the Compiler
compliance level.
Since the upgrade, I am getting ClassFoundError bad version information on
my MIDP2 device and the compiler stage in the Ant build is talking about
"Some input files use unchecked or unsafe operations." which to me is "1.5
talk" related to Hashtable creation.
Even though I point the java.classes.jar in my Ant Build.xml to the 1.4.2
installation, I still needed to go into the
Package>Properties>Builders>Ant Builder>Edit>JRE>Separate JRE and set it
to 1.4.2, otherwise Ant would use the Workspace JRE, that being 1.5, and
screw things up when I deployed to my MIDP device.
Just in case anyone else has this problem, though you really have to be a
amnesiac/noob to suffer the kinds of problems I do sometimes!
|
|
|
Powered by
FUDForum. Page generated in 0.07670 seconds