This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Executable Jar On An Android? " Watch "Executable Jar On An Android? " New topic

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

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 - it contains many introductory articles on the API and the tools you need to use. The AndroidFaq also points to much useful material.
I agree. Here's the link:
subject: Executable Jar On An Android?
Similar Threads
about jar ???
running a class in a jar ......
icon for executable jar file
Seperate javadoc for client and server
JAR / JRE question