I have one jar file, when I clicked that jar file, it was opened one window based application.
Now I would like to convert this jar file into apk file. That jar file having 5 class files. How can I know the initial class file? and How could I code on this in android?
Please do the needful.
Thanks in advance.
How can I know the initial class file?
Please read http://docs.oracle.com/javase/tutorial/deployment/jar/appman.html .You should have a look at following part:
If you have an application bundled in a JAR file, you need some way to indicate which class within the JAR file is your application's entry point. You provide this information with the Main-Class header in the manifest, which has the general form:.......
Answering to your next question:
How could I code on this in android?
Import JAR file to Android Project. You can get JAR's entry point from Manifest file ( not AndroidManiefst.xml but from JAR's Manifest). However, you mentioned:
it was opened one window based application.
It looks like those 5 classes have dependencies on some different JARs which could not be available on Android platform.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With