Solved

Java

Posted on 2007-03-18
8
175 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to convert from xls to xlsx using java 7 95
Chrome and Firefox Java 5 69
Eclipse with various Java releases 7 51
Java Inheritance super keyword use 8 38
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

726 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