shahrine99
asked on
Java
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?
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?
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.
ASKER
I used the Jeode compiler. The iPAQ came with the CD, so I installed the Jeode compile from the CD
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.
http://java.sun.com/products/personaljava/index.jsp
However that is EOL and you should look at migrating to CDC/ Personal Profile.
ASKER
so that means...the program on pocket pc will be bigger size than on my laptop?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
oh i get it now..ok thanks for ur help =)
:-)