[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Java

Posted on 2007-03-18
8
Medium Priority
?
183 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Independent Software Vendors: 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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

650 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