PDA

View Full Version : gcj vs. javac



skytreader
February 23rd, 2010, 01:52 PM
Just a quick question: what's a better java compiler, gcj or javac? Are there any pros and cons between the two?

CptPicard
February 23rd, 2010, 02:08 PM
Sun's Java is the only game in town. I guess you could say that it has all the pros from robustness to API completeness and so on and GNU Java has all the cons... ;)

Queue29
February 23rd, 2010, 03:18 PM
Oracle's Java is the only one that should even exist. OpenJDK was made when Java was closed source, which it isn't now, so it's time for the cheap knock off to die. And when I say cheap, I mean check out this real - world example of how the open source clone has rendered Java entries unusable in this contest:

http://csclub.uwaterloo.ca/contest/forums/viewtopic.php?f=9&t=201

OpenJDK is slow, incomplete, redundant, and not the official version of the software it imitates.

kahumba
February 23rd, 2010, 03:40 PM
Afaik gcj != OpenJDK, though they could have been merged. Gcj has been the Gnu project for ages, while OpenJDK was Sun's open sourced version of their Java + temporary bad code to replace the code that they couldn't open source.

SeanHodges
February 23rd, 2010, 03:50 PM
Oracle's Java is the only one that should even exist. OpenJDK was made when Java was closed source, which it isn't now, so it's time for the cheap knock off to die. And when I say cheap, I mean check out this real - world example of how the open source clone has rendered Java entries unusable in this contest:

http://csclub.uwaterloo.ca/contest/forums/viewtopic.php?f=9&t=201

OpenJDK is slow, incomplete, redundant, and not the official version of the software it imitates.

Correction: GCJ was made when Java was closed source.

OpenJDK is Sun's JDK with the non-GPL compatible components removed. http://en.wikipedia.org/wiki/OpenJDK.

In addition: "In July 2009, OpenJDK binary build for Ubuntu 9.04 passed all of the compatibility tests in the Java SE 6 JCK." https://lists.ubuntu.com/archives/ubuntu-devel-announce/2009-July/000587.html