aspose file tools*
The moose likes Beginning Java and the fly likes Is JAVA 100% platform independent???? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Is JAVA 100% platform independent????" Watch "Is JAVA 100% platform independent????" New topic
Author

Is JAVA 100% platform independent????

kotha vijaybabu
Ranch Hand

Joined: Jan 28, 2006
Posts: 77
hi, i heard that JAVA is not completely platform independent... is it true

plz...explain in detail..



cheers

vijay
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Java is platform independent because you can take byte code compiled on one platform and run it in a compatible JVM on some other platform. Given a new platform, you can't run Java at all until somebody writes a JVM so I wouldn't count on running on a TRS80 real soon.

It's easy to write code that breaks out of the JVM with JNI or exec() or even line-end schemes. And some JVMs have subtle differences in behavior. These things mean there is code that won't run on every JVM & platform combination.

Does that line up with your question?


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 19068
    
  40

Given a new platform, you can't run Java at all until somebody writes a JVM so I wouldn't count on running on a TRS80 real soon.


Stan,

That sentence implies that the TRS-80 is a new platform...

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
arjun krishna
Greenhorn

Joined: Mar 02, 2006
Posts: 7
we cannot guarantee that same byte code will give same response in awt even though they are running in same platform with different operationg systems
kotha vijaybabu
Ranch Hand

Joined: Jan 28, 2006
Posts: 77
thank u James

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is JAVA 100% platform independent????