Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A really basic question !!

 
Neha Mohit
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Neha Mohit
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ernest; I really appreciate that
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic