Solved

Running .jar in J2ME emulator

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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 …
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
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:

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now