Solved

Running .jar in J2ME emulator

Posted on 2009-07-15
2
888 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to implement Singleton Design Pattern in Java.

777 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