wood burning stoves*
The moose likes Java Micro Edition and the fly likes Java on Pocket Pc 2003 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Java on Pocket Pc 2003" Watch "Java on Pocket Pc 2003" New topic
Author

Java on Pocket Pc 2003

marina fisco
Greenhorn

Joined: Nov 19, 2003
Posts: 11
Hi everybody!
I'm new in this forum and I hope you can help me!
I need to use java on Pocket PC 2003. I'm using Pocket PC 2003 SDK as emulator. What java version should I use? How can I run it on the emulator?
I'm new both in J2ME and PDAs!
Thanks a lot!
marina
Fernando Sanz
Ranch Hand

Joined: Jun 27, 2003
Posts: 101
You can use JDK 1.1.8.
You need to install a JVM (like CrEme form www.nsicom.com), just copy the .cab file on the Emulator. Click on the file name, and it'll install itself.
Then, all you need is to compile your code (using JDK 1.1.8) and build a jar file of your project. Then, copy the .jar file on the Emulator as well.
Just click on the .jar file name and your program will load.
marina fisco
Greenhorn

Joined: Nov 19, 2003
Posts: 11
first of all, thank you for your detailed reply!
Next, I've visited nsicom web page but I found among tha FAQs that I can't run crEme on the Windows Emulator.
Did you prove it by yourself?
If so, for what kind of CPU can I make the download? I thought x86 but it isn't available for Pocket PC.
Thanks a lot
marina
Fernando Sanz
Ranch Hand

Joined: Jun 27, 2003
Posts: 101
You're welcome,
I've been using it for a while, and it was fine.
Although, the Emulator is not the best product you'll find from Microsoft. Very often, it makes your computer to crash. It has to do with the Graphics Card. That's one reason why I ended up getting a second hand iPAQ.
Most of the time, when I compile, I just have two lines of code in my programs, and depending if I'm going to test on the desktop or the PDA I comment out one of them:

That way, if you're using JDK 1.1.8, you can be almost sure that it's going to work on the PDA. At least the way your GUI will look. But, it's always better to test the behaving/events on the PDA itself.
For example, buttons might look a bit different, and you'll find out how easy or difficult is actually to tap on them.
Let me know if you don't find the proper .cab file for the Emulator.
marina fisco
Greenhorn

Joined: Nov 19, 2003
Posts: 11
Hi Fernando!
I downloaded from nsicom.com the file CrEme324_ARM_CE4x_PPC.cab. I chose ARM as CPU (there wasn't a specific cab for the emulator).
I copied it on the emulator and installed it. In the section "Programs" appeared a folder named Crme but when I clicked on the programs, it said they weren't Pocket PC programs!
I think perhaps I must choose x86 as CPU but on the nsicom web site they say the kit for x86 isn't available.
Which cab did you use?

thanks a lot for your help!!!
marina
Fernando Sanz
Ranch Hand

Joined: Jun 27, 2003
Posts: 101
Hi Marina,
I just went to the NSIcom website and the cab file is available for download.
NSIcom Software: CrEme
Target CPU: x86
Target Operating System: Windws CE 3.0
Are those the options you chose?
marina fisco
Greenhorn

Joined: Nov 19, 2003
Posts: 11
Hi!
thanks a lot! again!
Actually I tried to download the version for Pocket PC 2003. I'll try your solution and I'll let you know.
Bye
marina
marina fisco
Greenhorn

Joined: Nov 19, 2003
Posts: 11
Hi!
I installed that cab and it seems to work fine!!
thanks a lot!
Now I'll try to run an application. You said it must be a jar file compiled with java 1.1.8 so I must modify something.
I'll let you know.
Bye!!
marina
Fernando Sanz
Ranch Hand

Joined: Jun 27, 2003
Posts: 101
I'm glad you got it working at the end.
It took me weeks to get, cause I didn't find all the relevan information I needed.
Have fun!
marina fisco
Greenhorn

Joined: Nov 19, 2003
Posts: 11
Hi!
I'm here again !
I tried creating a very simple application (a window with a label) and a jar file with jdk 1.1.8 and I copied it on the emulator (where I installed CrEme). I click on it, it says it's loading but no window appears!
Have you got any idea of the reason??
Obviously I'm sure the jvm works wel 'cause I launched a demo.
Thank you a lot
marina
Fernando Sanz
Ranch Hand

Joined: Jun 27, 2003
Posts: 101
Have you tested the jar file on your desktop first?
marina fisco
Greenhorn

Joined: Nov 19, 2003
Posts: 11
yes, of course! And it runs well.
I've also used those lines you suggested for the size of the frame.
marina fisco
Greenhorn

Joined: Nov 19, 2003
Posts: 11
I found a text file in the root directory, called jscpout, which says:
NSIcom Ltd.,CrEme(tm) Evaluation
VersionCrEme J2ME(tm)CrEme V3.23
B076.030724 24-07-2003
MemoryLimit=13616Kb
Main class rova-jar:jar file /prova.jar not found:
java.lang.IllegalAccessException: Prova
Prova is the name of my application and I copied it in the same directory
Fernando Sanz
Ranch Hand

Joined: Jun 27, 2003
Posts: 101
can you send me by e-mail your .jar file, and I'll test it on my PDA?
you can see my e-mail from my profile
marina fisco
Greenhorn

Joined: Nov 19, 2003
Posts: 11
It's ok!
It runs!
The problem was that I must declare the main class as public!
It was only a test application so now I'll work with mine.
I'll let you know.
Thank you very much!!!
marina
marina fisco
Greenhorn

Joined: Nov 19, 2003
Posts: 11
Hi Fernando!
The JVM works well and now I'm going on developing my application. You were very precious and I thank you a lot!
If you can, I'd ask you for your help again:
how can I connect my emulator with the PC? My application needs them connected and I didn't succeed in using ActiveSync.
I know it doesn't agree with the topics of this forum but I hope you can help me!
thanks!
marina
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Marina, I think you should start a new thread regarding your latest question.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
ravi v kumar
Ranch Hand

Joined: Dec 14, 2004
Posts: 56
hi Fernando,

i am nebie to creme

i download all the exe file and installed in my pc

my questions are:

how to run creme emulator?
how to deploy java application and test it on creme emulator?
can u provide sample jar file to deploy ?

also provide me the steps to follow how to work on creme

awaiting for ur valuable reply

my mail is rave_msis@yahoo.com

with regards
ravi
india
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java on Pocket Pc 2003
 
Similar Threads
JVM for pocket PC
Java on Pocket PC 2003
J2ME on Pocket PC
PDA simulator for java programming
pocket pc emulator on WebShpere??