Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsExternal JAR File
https://www.eclipse.org/forums/index.php/mv/msg/7727/23600/#msg_23600
first of all thanks for investing so much time and doing such a great
job with MTJ.
I can write some "HelloWorld" code and deploy it to the mobile without
a problem.
I start having problems when I include an external JAR file. I have added
it
correctly in "Libraries" and checked it in "Order and Export". When I
don't use the external JAR in my code, everything works fine. When I
start using it, I get an the following error message:
ALERT: java/lang/ClassFormatError: Bad version information.
The external jar file I am trying to use is
qrcode(http://qrcode.sourceforge.jp).
I have set the "Compile Compliance Level" to 1.4, but that doesn't change a
thing.
I have a hunch that says, that the external jar is in an incompatible
format, but
how can I turn it into a compatible one?
I am using the following software versions:
Eclipse: 3.4.1
MJT: 0.9.0
Java: 1.5.0_16
best regards,
sigi]]>Christoph Sieghart2008-12-02T02:45:13-00:00Re: External JAR File
https://www.eclipse.org/forums/index.php/mv/msg/7727/568872/#msg_568872
The problem really seems to be the fact that your external library is
compiled with an unsupported class version. The library must be compiled
in a 1.3 class version so it can be used in a Java ME application. So you
should compile the sources into a 1.3 compatible class version to be able
to use it.
Best Regards,
David Marques]]>David Marques2008-12-02T16:29:05-00:00Re: External JAR File
https://www.eclipse.org/forums/index.php/mv/msg/7727/23643/#msg_23643
The problem really seems to be the fact that your external library is
compiled with an unsupported class version. The library must be compiled
in a 1.3 class version so it can be used in a Java ME application. So you
should compile the sources into a 1.3 compatible class version to be able
to use it.
Best Regards,
David Marques]]>David Marques2008-12-02T16:29:05-00:00Re: External JAR File
https://www.eclipse.org/forums/index.php/mv/msg/7727/568893/#msg_568893
> The problem really seems to be the fact that your external library is
> compiled with an unsupported class version. The library must be compiled
> in a 1.3 class version so it can be used in a Java ME application. So you
> should compile the sources into a 1.3 compatible class version to be able
Yes, that was the problem and recompiling the library fixed it.
best regards,
Christoph]]>Christoph Sieghart2008-12-02T17:35:53-00:00Re: External JAR File
https://www.eclipse.org/forums/index.php/mv/msg/7727/23686/#msg_23686
> The problem really seems to be the fact that your external library is
> compiled with an unsupported class version. The library must be compiled
> in a 1.3 class version so it can be used in a Java ME application. So you
> should compile the sources into a 1.3 compatible class version to be able
Yes, that was the problem and recompiling the library fixed it.
best regards,
Christoph]]>Christoph Sieghart2008-12-02T17:35:53-00:00