aspose file tools*
The moose likes Beginning Java and the fly likes A really basic question !! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "A really basic question !!" Watch "A really basic question !!" New topic
Author

A really basic question !!

Neha Mohit
Ranch Hand

Joined: Apr 25, 2006
Posts: 87
hi ranchers

There are different vendors who make java compilers; so my question is. Is it possible that a java code compiled by vendor A java compiler will run normally always on vendor B java runtime environment; and if not under what circumstances it will fail.

Thanks in advance
Neha
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

In the real world, of course, you can never say "always". Nothing is perfect.

But in theory, yes, it's supposed to always work that way, and under no circumstances should it fail to work.


[Jess in Action][AskingGoodQuestions]
Neha Mohit
Ranch Hand

Joined: Apr 25, 2006
Posts: 87
Thanks Ernest,

Can you just add a little more by telling me the names of the different people who write java compilers and are really popular. Besides Sun


thanks in advance
neha
Willy Thorpe
Greenhorn

Joined: Jan 18, 2007
Posts: 2
I agree to Ernest Friedman "nothing is perfect" and the word "always" one day will leave of being "always"

But i think that you must give one looked at the sites (Google and Yahoo) searchind about java compilers to "academic works".

Good studies


"The time will not change of direction when the Universe to start to contract" Stephen Hawking
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

The Eclipse IDE has its own compiler; the Tomcat JSP container uses it to compile JSPs, too. That's by far the most commonly used Java compiler aside from Sun's. The open-source "Jikes", originally an IBM product, is used by some people because it's both fast and good at warning about possible problems that are technically legal code. There are certainly others, but those two are the biggies (I'm not counting GNU gcj, which compiles directly to native code, not to bytecode.)

As far as JVMs go, IBM has one that sees widespread use, and there's also JRockit from BEA. Again, there are others, but those are the big ones.
Neha Mohit
Ranch Hand

Joined: Apr 25, 2006
Posts: 87
Thanks Ernest; I really appreciate that
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A really basic question !!