How to convert the jar file to apk?

I have one jar file, when I clicked this jar file, it was opened in one window.

Now I would like to convert this jar file to apk file. This jar file contains 5 class files. How to find out the source class file? as well as how can i encode this on android?

Please do the necessary.

Thanks in advance.

+8
java android jar apk
source share
2 answers

How to find out the source class file?

Please read http://docs.oracle.com/javase/tutorial/deployment/jar/appman.html . You should look at the following part:

If you have an application included in a JAR file, you need to specify which class in the JAR file is your dot application record. You provide this information to the header of the main class in the manifest, which has the general form: .......

Answering the following question:

How can I encode this in android?

Import the JAR file into an Android project. You can get the JAR entry point from the manifest file (not AndroidManiefst.xml, but from the JAR manifest). However, you mentioned:

One window-based application was opened.

It seems that these 5 classes have dependencies on some different JARs that may not be available on the Android platform.

+1
source share

You can convert J2ME applications (jar / jad) to Android (apk) using UpOnTek conversion services. The service includes automatic conversion, and then optimization tips.

0
source share

All Articles