?
Solved

Java

Posted on 2007-03-18
8
Medium Priority
?
180 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
[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
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 30

Expert Comment

by:Mayank S
ID: 18746267
0
 

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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month9 days, 14 hours left to enroll

762 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