Using Java .jar Files in Android?

Put your problem here if it does not fit any of the other categories.

Using Java .jar Files in Android?

Postby chaoz1336 » Wed Jun 24, 2009 9:46 am

Hi guys,

my boss wanted me to re-use our java me libraries in android.
is something like that possible?
I mean... is Android compatible to java me this way?

greetz n thx in advance
Experienced Developer
Experienced Developer
Posts: 90
Joined: Wed Dec 10, 2008 5:19 pm


Postby ash » Wed Jun 24, 2009 12:08 pm

I don't think that this is possible because Android uses its own java vm (dalvik) which doesn't use normal java bytecode but instead uses its own file format (*.dex).

I even doubt that you can compile the source code for use in android, because the java on the android platform is a special java SE/ME mixture (afaik) and not a true ME version.

To create a working android app you have to use the special android.* classes (activities, services, receivers) which are not included in standard java.

But I can be wrong here too. Best would be to just try it ...

This is an interesting project called ME4Android: Maybe this helps you a bit.
Posts: 5
Joined: Thu Jun 11, 2009 12:01 pm


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 5 guests