External JAR File [message #23600] |
Mon, 01 December 2008 21:45  |
Eclipse User |
|
|
|
Hello,
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
|
|
|
|
Re: External JAR File [message #23686 is a reply to message #23643] |
Tue, 02 December 2008 12:35  |
Eclipse User |
|
|
|
David Marques wrote:
> 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
|
|
|
Re: External JAR File [message #568872 is a reply to message #23600] |
Tue, 02 December 2008 11:29  |
Eclipse User |
|
|
|
Hello sigi,
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
|
|
|
Re: External JAR File [message #568893 is a reply to message #23643] |
Tue, 02 December 2008 12:35  |
Eclipse User |
|
|
|
David Marques wrote:
> 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
|
|
|
Powered by
FUDForum. Page generated in 0.12171 seconds