Solved

Running .jar in J2ME emulator

Posted on 2009-07-15
2
889 Views
Last Modified: 2013-11-24
Hello:

I have some .jar files that someone has sent me to simply run them and see how the J2ME applications work in order to estimate a cost for conversion.

I have downloaded the java j2me platform sdk 3.0 thinking I can simply "import" the .jar files
and I could run them.

Not that simple....or am I missing something.  I see no import function.  I tried to create a project, but the furthest I got was creation of an empty .jar/.jad file created from the unpacked .jar I was sent.

Can anyone help?  This has to be simple without requiring any IDE as I just want to run the darn things for now.

Attached is a typical directory structure of one of the .jar files, each representing a game.  Hopefully, this helps.

Thanks,

Dan
directory-structure.png
0
Comment
Question by:danw11
2 Comments
 
LVL 6

Expert Comment

by:CodeFish
ID: 24866018
Sounds like your doing everything right.

Do you get an error message when trying to create a project from jar? It should come back with something. I'm not running up to date (2.5 not 3.0) but when I create a project from a jar it tells me "project created." With 2.5 (and I assume 3.0) some projects had to be run "Over The Air" -if it used networking technology (which some games do.) To do that you select from the menu >Project > run via OTA. But, I don't think that's your problem because the j2me platform gives an error and tells you to run OTA if you try running without going OTA.

0
 

Accepted Solution

by:
danw11 earned 0 total points
ID: 24870474
Codefish:

Actually, I figured it out myself.  I found this cool tool called JadWizard.  You literally drag your .jar over the .exe and it quickly creates the .jad file for you.  

I then found that the GUI for the JDK Wireless Toolkit 3.0 just did not do the job and also had no where in the help on how to do this.

So, in experimenting and by accident, I found that the command line emulator tool when run with these parms.:

emulator -cp <file name>.jar -Xdescriptor:<file name>.jad

did the trick and worked like a charm.

Hopefully, this will help others.

Thanks for your attempt.

Dan
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Weekend adv creator 3 64
Java exception bubble up 2 24
Crystal Reports Licensing Questions 4 56
What is the use of Forwarding Class in java 1 34
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question