Replacing OpenJDK with Sun Java

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
anonova
Level 1
Level 1
Posts: 2
Joined: Wed Jun 23, 2010 1:37 pm

Replacing OpenJDK with Sun Java

Postby anonova » Wed Jun 23, 2010 2:11 pm

I recently installed the main Linux Mint 9 (i386). I'm having some trouble running Java applets in Firefox. I searched around and found that the general solution is to replace OpenJDK and IcedTea with Sun Java and its web plugin. What is the preferred way to go about doing this? There are a lot of guides for Ubuntu 8.04 and 8.10, but I'm not sure if they will work with the 10.04 base. I decided to look at what's installed and the packages in the repositories and came up with this.

Code: Select all

aptitude remove openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib icedtea6-plugin icedtea-6-jre-cacao
aptitude install sun-java6-bin sun-java6-jre sun-java6-plugin

Can anyone confirm that this will not mess up a fairly fresh Linux Mint 9 install?

User avatar
hinto
Level 7
Level 7
Posts: 1800
Joined: Thu Jul 09, 2009 7:32 pm
Location: Cary NC, USA

Re: Replacing OpenJDK with Sun Java

Postby hinto » Wed Jun 23, 2010 4:17 pm

I usually use synaptic, and install Sun's jdk first, then remove open jdk (iced-tea). That way I don't inadvertently uninstall an app dependent on java.
-H
"In God we trust, all others bring data."- W. Edwards Deming

vincent
Level 8
Level 8
Posts: 2218
Joined: Tue Feb 09, 2010 4:10 am

Re: Replacing OpenJDK with Sun Java

Postby vincent » Wed Jun 23, 2010 6:12 pm

Did you install the DVD version or the CD version? If the DVD version, then you already have Sun Java installed.
Debian Testing x64/LM9 Main x64/Windows 7 x64 - LG R580 laptop w/ Intel Core 2 Duo T6500 2.1 GHz, 4 GB DDR2 RAM, Nvidia Geforce G 105M, Ralink rt2860 802.11n, 300 GB WD HD 5400 rpm

anonova
Level 1
Level 1
Posts: 2
Joined: Wed Jun 23, 2010 1:37 pm

Re: Replacing OpenJDK with Sun Java

Postby anonova » Wed Jun 23, 2010 6:52 pm

hinto wrote:I usually use synaptic, and install Sun's jdk first, then remove open jdk (iced-tea). That way I don't inadvertently uninstall an app dependent on java.
-H

Fortunately, aptitude was smart enough not to do that. I executed the commands I posted in a VM, and everything seems to have went okay.
vincent wrote:Did you install the DVD version or the CD version? If the DVD version, then you already have Sun Java installed.

I used the CD version. Why does the CD version have OpenJDK, and the DVD one, Sun Java?

vincent
Level 8
Level 8
Posts: 2218
Joined: Tue Feb 09, 2010 4:10 am

Re: Replacing OpenJDK with Sun Java

Postby vincent » Wed Jun 23, 2010 8:46 pm

Java was left out of the CD because of space restrictions, as was VLC, OpenOffice.org-base, F-Spot, Samba, additional wallpapers and ttf-dejavu (the last one is a truetype font). All of the above were included on the DVD though.
Debian Testing x64/LM9 Main x64/Windows 7 x64 - LG R580 laptop w/ Intel Core 2 Duo T6500 2.1 GHz, 4 GB DDR2 RAM, Nvidia Geforce G 105M, Ralink rt2860 802.11n, 300 GB WD HD 5400 rpm

User avatar
hinto
Level 7
Level 7
Posts: 1800
Joined: Thu Jul 09, 2009 7:32 pm
Location: Cary NC, USA

Re: Replacing OpenJDK with Sun Java

Postby hinto » Wed Jun 23, 2010 10:16 pm

anonova wrote:
hinto wrote:I usually use synaptic, and install Sun's jdk first, then remove open jdk (iced-tea). That way I don't inadvertently uninstall an app dependent on java.
-H

Fortunately, aptitude was smart enough not to do that. I executed the commands I posted in a VM, and everything seems to have went okay.
vincent wrote:Did you install the DVD version or the CD version? If the DVD version, then you already have Sun Java installed.

I used the CD version. Why does the CD version have OpenJDK, and the DVD one, Sun Java?


If for example, you have Eclipse installed and uninstall iced-tea first, Eclipse will be uninstalled since you will have a broken dependencies. That is why I install sun-jdk first, then uninstall iced-tea.
-Hinto
"In God we trust, all others bring data."- W. Edwards Deming


Return to “Newbie Questions”

Who is online

Users browsing this forum: mcganical and 16 guests