Skip to main content
GameDev.net gamedev.net
🔒 Locked

[java] What is a good java compiler?

Started by bioagentX Apr 10, 2003 at 6:14 PM 12 replies 1.4k views
Original Post
bioagentX
bioagentX
What is a good Java compiler, and what is microsoft''s version of it called? Is it J++ or J#, what''s the difference between them anyway.
There are three types of people in this world, those who can count, and those who can't
fadilthrejk
fadilthrejk
There is only one Java compiler: The JDK from Sun. J++ was simply an IDE for Java, it''s no longer supported. C# is a Microsoft ripoff of Java, with some changes made.

[edited by - Euronymous on March 12, 1998 7:07:06 AM]
NuffSaid
NuffSaid
There are quite a number of Java compilers available. You can get them from Sun, IBM, Blackdown, and a couple of other open source compilers like Jikes. All these compilers generate bytecode that run in a JVM.

If you want a Java compiler that generates executables that don't need a virtual machine, take a look at JET, and GCJ.

There's probably more that I'm missing

[edited by - NuffSaid on April 11, 2003 4:36:23 AM]
==========================================In a team, you either lead, follow or GET OUT OF THE WAY.
fadilthrejk
fadilthrejk
seriously?
I thought that they were just different implementations of the Sun compiler.

[edited by - Euronymous on March 12, 1998 7:07:06 AM]
NuffSaid
NuffSaid
Sun just provides a reference compiler. They basically set the standard, and everyone else just makes a compiler/vm that conforms to the standard. However, Blackdown is basically the Sun compiler, with some modifications (I think).
==========================================In a team, you either lead, follow or GET OUT OF THE WAY.
fadilthrejk
fadilthrejk
so which is best?

[edited by - Euronymous on March 12, 1998 7:07:06 AM]
Arild Fines
Arild Fines
Best at what?



"Laughter means distance. Where laughter is absent, madness begins. The moment one takes the world with complete seriousness one is potentially insane. The whole art of learning to live means holding fast to laughter; without laughter the world is a torture chamber, a dark place where dark things will happen to us, a horror show filled with bloody deeds of violence."
-- Jens Bjørneboe
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
OrangyTang
OrangyTang
There are only two ''proper'' Java compilers/virtual machines. The reference implementation from Sun, and one from IBM. IBM''s tends to be generally faster for floating point operations (and probably slightly slower for most other operations). The Eclipse IDE comes with its own compiler (not sure whether its it own or IBM''s) which seems to spit out more understanable error messages.

Bear in mind that the Java virtual machine does a lot more work that a C or C++ runtime, and so compiler performance differences are usually non-existant, its the actual VM that makes the difference..
Arild Fines
Arild Fines
quote:
Original post by OrangyTang
The Eclipse IDE comes with its own compiler (not sure whether its it own or IBM''s) which seems to spit out more understanable error messages.


IBM is behind the Eclipse project.



"Laughter means distance. Where laughter is absent, madness begins. The moment one takes the world with complete seriousness one is potentially insane. The whole art of learning to live means holding fast to laughter; without laughter the world is a torture chamber, a dark place where dark things will happen to us, a horror show filled with bloody deeds of violence."
-- Jens Bjørneboe
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
johnhattan
johnhattan
If you''re looking for a replacement for javac, I''d like to throw in a vote for Jikes. It''s been around forever and is very good. Biggest problem with javac is that the compiler itself is written in Java, so it can get pretty slow. Jikes is done in C and is lightning fast. Also it has more descriptive error messages.

FWIW, you can change the error message format to conform to the old javac format so that you can use it with existing IDE''s.
(my byline from the Gamedev Collection series, which I co-edited) John Hattan has been working steadily in the casual game-space since the TRS-80 days and professionally since 1990. After seeing his small-format games turned down for what turned out to be Tandy's last PC release, he took them independent, eventually releasing them as several discount game-packs through a couple of publishers. The packs are actually
NuffSaid
NuffSaid
quote:
Original post by johnhattan
If you''re looking for a replacement for javac, I''d like to throw in a vote for Jikes. It''s been around forever and is very good. Biggest problem with javac is that the compiler itself is written in Java, so it can get pretty slow. Jikes is done in C and is lightning fast. Also it has more descriptive error messages.

FWIW, you can change the error message format to conform to the old javac format so that you can use it with existing IDE''s.


Javac isn''t written in Java.
==========================================In a team, you either lead, follow or GET OUT OF THE WAY.
capn_midnight
capn_midnight
yeah, if javac was written in java you would have to type "java javac" or "java -jar javac" to get it to run.
Maybe this guy is talking about IDEs? I use JCreator. The freeware version is very solid, very functional, and very easy to use.
Psionic-X
Psionic-X
I would assume he was talking about IDE .. because thats what most people are familier with when compiling there java programs.. Personnaly i use JBuilder from Borland.
------------------------------Exsiting in every essence of time I will find you! You will answer my Question!-Psionic-X- Existing from a greater plane

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.