File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

running Java in mobile

 
Rajat Sarkar
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is platform-independent.Why my written Java programs do not run in my mobile.I've created a .jar file of my application.How to run this jar in my mobile? I use Java SE 6.
 
Campbell Ritchie
Sheriff
Pie
Posts: 47229
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may need to install Java on your mobile. Most mobiles don't use J2SE but the micro edition (J2ME), so a Java SE file may contain classes which J2ME doesn't support.

Probably better discussed on our mobile forum . . . moving.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17616
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java Micro Edition was designed to allow Java to run in devices with limited amounts of memory and CPU horsepower. Not only does it not implement all the classes that are supported by J2SE, many classes don't support all the methods that the full J2SE implementation provides. J2ME has its own set of JavaDocs that list what's provided.

JME also requires a slightly different build process. You can't just create a JAR and load it into the device.

For more information, look at Sun's JME documentation on their website.
 
Darryl Burke
Bartender
Posts: 5115
11
Java Netbeans IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
About this statement
Java is platform-independent.

Only to the extent that Java bytecode can be executed on a device that has a JVM (or in the case of most mobile devices, KVM) engineered for the platform, and a JRE that supports the classes used by the program.

As already stated, you can't run a Java SE program on a device that supports Java ME.
 
bharath bs
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try midp2 to trns jar to mobile it works fine
 
Amit Ghorpade
Bartender
Posts: 2851
10
Fedora Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"BHARATH bms" please check your private messages for an important administrative matter. You can see them by clicking the My Private Messages link above.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic