Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Development & Programming > Programming Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Programming Talk
This forum is for all programming questions.
The questions do not have to be directly related to Ubuntu and any programming language is allowed.

 
Thread Tools Display Modes
Old May 1st, 2009   #1
sefs
Extra Foam Sugar Free Ubuntu
 
Join Date: Apr 2006
My beans are hidden!
sun-java6-jdk vs. openjdk-6-jdk

Is the openjdk now the way forward. I currently have sun-java6-jdk. I just wanted clarification that the openjdk is now the offical install from here on out for the java programming language.

Thanks.
sefs is offline   Reply With Quote
Old May 2nd, 2009   #2
jespdj
Chocolate-Covered Ubuntu Beans
 
jespdj's Avatar
 
Join Date: Jun 2006
Location: The Netherlands
Beans: 2,120
Ubuntu 9.04 Jaunty Jackalope
Re: sun-java6-jdk vs. openjdk-6-jdk

The best version of Java to use at the moment is Sun Java 6.

OpenJDK is Sun's project to make their Java implementation fully open source. The next version of Sun Java (Sun Java 7, expected no sooner than March 2010) is going to be based on OpenJDK.

The version of OpenJDK that's in the Ubuntu repository is a Sun Java 6-compatible version of OpenJDK; it's basically the same as Sun Java 6, but with some proprietary parts (that Sun didn't write themselves) replaced by open source software (parts of the font rendering, graphics and sound stuff).

For the most part, OpenJDK works well with most Java applications, but unfortunately it is not 100% compatible with Sun Java 6, which causes problems with some Java programs, especially some online banking Java applets.

For Java software development, it really doesn't matter if you take the Sun JDK or the OpenJDK JDK, because the APIs are exactly the same. Just the implementation is different.
__________________
MacBook Pro | 2.66 GHz | 4 GB RAM | nVidia 9400 + 9600 | 320 GB HDD | Mac OS X Snow Leopard
Dell Mini 9 | 2 GB RAM | 32 GB SSD | Ubuntu Netbook Remix 9.04
Ubuntu on the Dell XPS M1530
jespdj is offline   Reply With Quote
Old May 2nd, 2009   #3
drubin
Moco Java filled *untu
 
drubin's Avatar
 
Join Date: Feb 2008
Location: Cape Town, South Africa
My beans are hidden!
Ubuntu 8.04 Hardy Heron
Re: sun-java6-jdk vs. openjdk-6-jdk

Quote:
Originally Posted by jespdj View Post
For Java software development, it really doesn't matter if you take the Sun JDK or the OpenJDK JDK, because the APIs are exactly the same. Just the implementation is different.
Generally that is ok even more so with cli applications. For Gui I would recommend not using the openjdk thee have been quite a few threads on this forum about users having issues with openjdk and swing. (mostly with alignment and look).

But generally if you code for openjdk and run your app on only openjdk it should be ok.
drubin is offline   Reply With Quote
Old May 2nd, 2009   #4
sefs
Extra Foam Sugar Free Ubuntu
 
Join Date: Apr 2006
My beans are hidden!
Re: sun-java6-jdk vs. openjdk-6-jdk

Thanks, I just tested it and realise that a swing app I have here displays a bit differently in truth, not as neat as the sun distribution.
sefs is offline   Reply With Quote
Old May 2nd, 2009   #5
eye208
Day Old Decaf
 
Join Date: Nov 2006
Beans: 1,134
Re: sun-java6-jdk vs. openjdk-6-jdk

Quote:
Originally Posted by sefs View Post
Thanks, I just tested it and realise that a swing app I have here displays a bit differently in truth, not as neat as the sun distribution.
Make sure to install the Lucida TrueType font. This has been the default font in Swing applications until OpenJDK. It is missing in the OpenJDK package but available separately.
eye208 is offline   Reply With Quote
Old May 2nd, 2009   #6
krazyd
Quad Shot of Ubuntu
 
krazyd's Avatar
 
Join Date: Jun 2006
Beans: 445
Re: sun-java6-jdk vs. openjdk-6-jdk

Some apps don't work at all with openjdk. Eg. BlueJ.
krazyd is offline   Reply With Quote
Old May 2nd, 2009   #7
jespdj
Chocolate-Covered Ubuntu Beans
 
jespdj's Avatar
 
Join Date: Jun 2006
Location: The Netherlands
Beans: 2,120
Ubuntu 9.04 Jaunty Jackalope
Re: sun-java6-jdk vs. openjdk-6-jdk

Quote:
Originally Posted by eye208 View Post
Make sure to install the Lucida TrueType font.
There's a package named sun-java6-fonts which will install fonts for Sun Java 6.
__________________
MacBook Pro | 2.66 GHz | 4 GB RAM | nVidia 9400 + 9600 | 320 GB HDD | Mac OS X Snow Leopard
Dell Mini 9 | 2 GB RAM | 32 GB SSD | Ubuntu Netbook Remix 9.04
Ubuntu on the Dell XPS M1530
jespdj is offline   Reply With Quote
Old May 2nd, 2009   #8
eye208
Day Old Decaf
 
Join Date: Nov 2006
Beans: 1,134
Re: sun-java6-jdk vs. openjdk-6-jdk

Quote:
Originally Posted by jespdj View Post
There's a package named sun-java6-fonts which will install fonts for Sun Java 6.
Yes, but if you install that, sun-java6-jre will be installed, too. That doesn't make much sense if you want to use OpenJDK anyway.
eye208 is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:35 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry