Solved

Java

Posted on 2007-03-18
8
169 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:mayankeagle
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:mayankeagle
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:mayankeagle
ID: 18746267
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

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:
mayankeagle 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:mayankeagle
ID: 18746278
:-)
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

757 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