Solved

Running .jar in J2ME emulator

Posted on 2009-07-15
2
893 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

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 …
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This video teaches viewers about errors in exception handling.

630 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