Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java on Pocket Pc 2003

 
marina fisco
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tested the jar file on your desktop first?
 
marina fisco
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, of course! And it runs well.
I've also used those lines you suggested for the size of the frame.
 
marina fisco
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marina, I think you should start a new thread regarding your latest question.
 
ravi v kumar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic