Solved

Running .jar in J2ME emulator

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

932 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

11 Experts available now in Live!

Get 1:1 Help Now