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 this

Replacing OpenJDK with Sun Java

Postby anonova on 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?
anonova
Level 1
Level 1
 
Posts: 2
Joined: Wed Jun 23, 2010 1:37 pm

Linux Mint is funded by ads and donations.
 

Re: Replacing OpenJDK with Sun Java

Postby hinto on 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
What brought me to Debian was one-stop shopping.
What brought me to SID was apt-get update && apt-get dist-upgrade.
User avatar
hinto
Level 6
Level 6
 
Posts: 1124
Joined: Thu Jul 09, 2009 7:32 pm
Location: Cary NC, USA

Re: Replacing OpenJDK with Sun Java

Postby vincent on 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
vincent
Level 8
Level 8
 
Posts: 2220
Joined: Tue Feb 09, 2010 4:10 am

Re: Replacing OpenJDK with Sun Java

Postby anonova on 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?
anonova
Level 1
Level 1
 
Posts: 2
Joined: Wed Jun 23, 2010 1:37 pm

Re: Replacing OpenJDK with Sun Java

Postby vincent on 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
vincent
Level 8
Level 8
 
Posts: 2220
Joined: Tue Feb 09, 2010 4:10 am

Re: Replacing OpenJDK with Sun Java

Postby hinto on 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
What brought me to Debian was one-stop shopping.
What brought me to SID was apt-get update && apt-get dist-upgrade.
User avatar
hinto
Level 6
Level 6
 
Posts: 1124
Joined: Thu Jul 09, 2009 7:32 pm
Location: Cary NC, USA


Return to Newbie Questions

Who is online

Users browsing this forum: Google Adsense [Bot] and 31 guests