Solved

Java

Posted on 2007-03-18
8
172 Views
Last Modified: 2010-03-31
I ran the calculator.java program on my laptop and on the Pocket PC. The output looks the same like this picture:
http://www.beginner-java-tutorial.com/java-swing-calculator.html but the teacher said there is a difference on the  program on laptop and Pocket PC. But, I do not see any difference. Any idea?
0
Comment
Question by:shahrine99
  • 5
  • 3
8 Comments
 
LVL 30

Expert Comment

by:Mayank S
ID: 18746238
Which JVM did you use for the pocket PC? Pocket PC will typically use a J2ME JVM which could be provided by a third party, like Creme or IBM J9. Swing is not in the J2ME specification but some JVMs like Creme support it, which might be the reason why it works well on both, the laptop as well as pocket PC. However, if you write a program for a pocket PC, it is recommended that you use J2ME and one of the configurations/ profiles like CDC/ Personal Profile.
0
 

Author Comment

by:shahrine99
ID: 18746251
I used the Jeode compiler. The iPAQ came with the CD, so I installed the Jeode compile from the CD
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 18746266
Ok, it is in sync with the Personal Java 1.2 specification:

http://java.sun.com/products/personaljava/index.jsp

However that is EOL and you should look at migrating to CDC/ Personal Profile.
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 18746267
0
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.

 

Author Comment

by:shahrine99
ID: 18746273
so that means...the program on pocket pc will be bigger size than on my laptop?
0
 
LVL 30

Accepted Solution

by:
Mayank S earned 500 total points
ID: 18746276
No it won't be.... you will just use a different compiler to compile it and a different JVM to run it than the one you are using on the laptop, because the laptop one will be based on J2SE whereas the pocket PC one will be based on some configuration/ profile of J2ME.

http://java.sun.com/javase/index.jsp

http://java.sun.com/javame/index.jsp

Off to sleep now :)
0
 

Author Comment

by:shahrine99
ID: 18746277
oh i get it now..ok thanks for ur help =)
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 18746278
:-)
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

Suggested Solutions

Title # Comments Views Activity
topping2 challenge 13 80
AWS and Java and Rest - newbie question (Is this an authentication issue) 4 66
couple of eclipse 5 19
oracle 11g 23 47
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

919 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

21 Experts available now in Live!

Get 1:1 Help Now