PDA

View Full Version : Sun java or Open JDK?



Safder
August 22nd, 2008, 02:16 AM
Hello ppl,

I am sure, this question has been asked before, but I am asking it again, since I dont know the answer to the question. What version of java do I use? Do I use the open source version or the sun version? What would be my criteria for using either. Thanks

meanburrito920
August 22nd, 2008, 02:33 AM
In general it is probably better to use the official Sun version. the open source version works fine for 99% of things, but some things break it. It's not perfect.

thomasaaron
August 25th, 2008, 06:38 PM
I'd agree with that. I've noticed that a fair number of commercial java applications that use SWING will not run on well (or sometimes at all) on openjdk.

Also, many applets will not work at all with it.

In my opinion, as much as I'd *love* to run with openjkd, it's just not that great yet.

howlingmadhowie
August 25th, 2008, 06:52 PM
the openjdk passed the java compatibility test in june 2008. any incompatibilities should be reported as bugs to the developers.

http://www.jboss.org/feeds/post/java_is_finally_free_and_open

bugs can be reported here: http://bugs.sun.com/
the repositiories should contain the newest version.

--------------edit----------------

one of the problems is that java applets can check the version of the java machine being used (by calling System.getProperties().getProperty("java.version")) and refuse to run on a later version. if you see this problem with the openjre1.6 you should see the same behaviour with sun-jre1.6.

henchman
August 25th, 2008, 07:01 PM
I also used the openjdk vm first but experienced slow java programs on a relatively new computer... after switching to the sun package, they were quite faster :)

don't know if that was only me, and be it bug or not: speed matters! :popcorn: