• Post Reply Bookmark Topic Watch Topic
  • New Topic

java on mobile  RSS feed

 
ankittt agarwala
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is a very serious question
java enabled appliances can run java so i wanted to know that how can i run java .class files on mobile.mobile is java enabled.for example a simple program which displays this is java , has been compiled successfully to its class file now how to run it on mobile.simple conversion to jar file doesn't seem to work.
 
Alexander Kober
Ranch Hand
Posts: 32
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Short answer is: a device may be able to run java applications, but a mobile device does not necessarily have the same libraries and surrounding (java runtime) a desktop PC has. Take a look at Java ME for details on development of mobile applications.
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't execute a Java .class file on a mobile device. You can package your classes in a jar file and execute the main class which has to extend MIDlet.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you actually have Java ME in mind? Or maybe Android?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!