File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes Executable Jar On An Android? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Executable Jar On An Android? " Watch "Executable Jar On An Android? " New topic
Author

Executable Jar On An Android?

Jason Newman
Ranch Hand

Joined: Oct 20, 2010
Posts: 53
I am trying to make my girlfriend an app for her Droid, and all I can do is program in Java. So, I have a executable .jar and so how do I get it working on her phone? Does it have to be converted? Or can you just apply it straight to the phone? If so how?
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
No, it won't run as is - you need to use the SDK tools to convert all classes/jar files into an Android-compatible format. But more importantly, the Android API is rather different from desktop Java, e.g. the java.awt.* and javax.swing.* packages are not available - Android has its own, rather different, GUI technology.

If you haven't done so yet, download the Android SDK and look through its documentation (also available online at http://developer.android.com/guide/) - it contains many introductory articles on the API and the tools you need to use. The AndroidFaq also points to much useful material.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Executable Jar On An Android?
 
Similar Threads
about jar ???
Seperate javadoc for client and server
running a class in a jar ......
JAR / JRE question
icon for executable jar file