• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting MIDP to work

 
Mikey Greene
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there I have got a little bit of experience in using java but but wanted to write a simple program for my PDA. I searched the internet and found an article ( http://www.onjava.com/pub/a/onjava/2001/03/22/j2me_wireless.html ) that explained how to get stared using CLDC & MIDP.

At the moment I am just following this article note for note with blind faith. I have managed to download, unzip and install both CLDC & MIDP and set the PATH and CLASSPATH. However when I direct the command prompt to C:\> and type "midp" the application comes up fine but then I get an error report saying "midp has encountered a problem and needs to close".
In the command prompt box I get the following warning messages
"Warning: cannot find lib subdirectory. Please specify MIDP_HOME environment variable such that $MIDP_HOME\lib contains the proper configuration files.

Warning: could not open config file(.\lib\internal.config): storageOpen(): No such file or directory, .\lib\internal.config

Warning: could not open config file(.\lib\system.config): storageOpen(): No such file or directory, .\lib\system.config"

The article says that if you encounter problems then check the CLASS and CLASSPATH values are correct. But surely if they were wrong then the MIDP application wouldnt come up at all.

When I goto the file midp.exe and run it it runs fine. Which does suggest I have made an error somewhere but I am confused as it does work but only half works. It would be easier if it didnt work altogether.

Any thoughts or ideas would be greatly appreciated.

Nice one

Mike
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just go to Sun's Java website

java.sun.com and go to the J2ME section and download the Wireless Toolkit, everything that you need will be downloaded. Create a new project, put your code into the projects src directory, click the compile and run button on the toolkit's KToolBar, and the emulator will run.

Mark
 
Mikey Greene
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark thankyou very much that was much simpler doing it that way.

Cheers

Mike
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic