Are you a spammer

Please note, that the first 3 posts you make, will need to be approved by a forum Administrator or Moderator before they are publicly viewable.
Each application to join this forum is checked at the Stop Forum Spam website. If the email or IP address appears there when checked, you will not be allowed to join this forum.
If you get past this check and post spam on this forum, your posts will be immediately deleted and your account inactivated.You will then be banned and your IP will be submitted to your ISP, notifying them of your spamming. So your spam links will only be seen for an hour or two at most. In other words, don't waste your time and ours.

This forum is for the use and enjoyment of the members and visitors looking to learn about and share information regarding the topics listed. It is not a free-for-all advertising venue. Your time would be better spent pursuing legitimate avenues of promoting your websites.

Using Sun Java instead of OpenJDK

Help & support for Ultimate Edition 2.6


Using Sun Java instead of OpenJDK

Postby 2hot6ft2 » Thu Jun 03, 2010 10:16 pm

Some sites like banking sites require Suns version of Java and it has to be up to date. And since removing OpenJDK will sometimes want to remove other things there are 2 ways to go. The first is removing openjdk and the other is to have both sun and openjdk installed and setting it to use the sun version. Since these instructions seem to solve the problem I am combining both methods here fro convenience.

I actually prefer method #2 but I already made it and if you already tried removing OpenJDK the first method may be helpful to some.

Method 1: Removing OpenJDK and installing Suns version

So first let's get it current by updating everything run these one at a time
Code: Select all
sudo apt-get update
sudo apt-get upgrade

Restart firefox and check the version of Java it shows the link here:
http://www.java.com/en/download/installed.jsp

Does it say: Version 6 Update 20
If it does then skip to step 2 below

Step 1 a
Now according the the release notes for Lucid Sun Java moved to the Partner repository.:
And this will enable that repo.
Code: Select all
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

Then to update and upgrade again run these one at a time
Code: Select all
sudo apt-get update
sudo apt-get upgrade

Does it say: Version 6 Update 20
If it does then skip to step 2 below

Step 1 b
Now for some reason I have Version 6 Update 20 and I do NOT have the partner repo. enabled. But I have enabled the Medibuntu repo. so if enabling the partner repo. did not bring sun java current then it's worth a shot and wont harm anything to enable it like this:

Code: Select all
sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update

That included the update command now to just upgrade packages.
Code: Select all
sudo apt-get upgrade

You should definitely have the Version 6 Update 20 now.
Restart firefox and check to be sure.

Step 2
May have found the fix for java
Code: Select all
sudo apt-get install libstdc++5

It will say it can't be authenticated. It will be ok to install it anyway. It installs nothing else (no additional dependencies).
It can be removed if it doesn't work with
Code: Select all
sudo apt-get remove libstdc++5

Documentation of sun java JRE6 requiring it here:
http://bugs.sun.com/bugdatabase/view_bu ... id=6542512
Problem is libdeploy.so in Java 6 or above depends on libstdc++.so.5

Im' the same of both machines 64 bits and 32 bits, and i 'have solved the JAVA APPLETS problem on Debian Etch 4.0 32 bits installed on a AMD64 MACHINE. This is how to...

#apt-get install libstdc++5

It's a bit dated but you know how old bugs come back to haunt sometimes.
You may need to reboot for it to take affect.

Method 2: Having OpenJDK and Sun Java installed and using Suns version

For some reason when removing OpenJDK it may want to remove other things which it shouldn't so this is how you can have both installed and set it to use the Sun version.

According the the release notes for Lucid Sun Java moved to the Partner repository.:
And this will enable that repo.
Code: Select all
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

I seem to get the most recent sun java version with the medibuntu repo. enabled so let's enable it since it wont hurt to have it enabled.
Code: Select all
sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update

That included the update command now to just upgrade packages.
Code: Select all
sudo apt-get upgrade

Now open Synaptic
System > Administration > Synaptic Package Manager
Click on Reload then search for openjdk and any of these that are not installed mark them for installation, any that are installed mark them for re-installation.
openjdk.png

then search for sun-java and do the same thing with these
sun-java.png

Also search for libstdc++5 and mark it for installation since Suns Java 6 needs it as explained earlier in method 1.

Click Apply and close Synaptic when finished and run:
Code: Select all
sudo update-java-alternatives -l

Which should return something like this
java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
java-6-sun 63 /usr/lib/jvm/java-6-sun

Now openjdk is set as default and we want to set it to suns version with this
Code: Select all
sudo update-java-alternatives -s java-6-sun

Hopefully it wont return anything which means it worked without any errors.
Close firefox and reboot then test it here by clicking on the Verify java version button:
Sun Java Test Page
It should say this
Congratulations!
You have the recommended Java installed (Version 6 Update 20).

Hopefully all of this will go without a hitch.
<BREW>
Image
HP G60-125NR - AMD Turion X2 64 - nVidia GeForce 8200M G - 128 GB SSD Dual boot - Ultimate Edition, Win 10 Pro
HP G60-121WM - AMD Sempron SI-40 - nVidia GeForce 8200M G - 128 GB SSD - Dual boot - Ultimate Edition, Win 10 Pro
Custom build, Rosewill Challenger ATX Gaming Case, AMD Phenom II x4 955 C3 rev., MSI 870A-G54, 2x ATI HD4850 512MB /256bit GDDR3 & dual precision, GSkill 8GB 1600 RAM - Multi boot - Ultimate Edition, Win 10 Pro, Beta Testing
User avatar
2hot6ft2
Moderator
 
Posts: 533
Joined: Sun May 25, 2008 12:30 pm
Location: Alabama, USA
Operating System: Ultimate Edition 3.2 64 BIT



Re: Using Sun Java instead of OpenJDK

Postby dathem » Fri Jun 04, 2010 1:14 pm

Hello 2hot6ft2, I followed your steps and it worked good for me <BREW> <BREW>
1)HPE-500F a 6 core @ 2.70 Ghz, with 8 gigs of Ram and a 1.5 T HD
the graphics card is an AMD Radeon HD 6450 with 512 MB DDR3 Ultimate Edition 3.2, Windows 7
2) HP Pav Elite m9040n Core2 quad 4gig ram Nvidia Geforce 8400, 640 g hd Win.7, UBUNTU 10.10
3) Gateway FX4710-UB0031 Core 2 quad 6 g ram Nvidia 8600gt-1gigddr3, 640g hd & Windows 7, & PCT Destined
Registered Linux User 533601
User avatar
dathem
U.E. Master
U.E. Master
 
Posts: 734
Joined: Fri Mar 13, 2009 11:23 am
Location: Pennsylvania, USA
Age: 69
Operating System: Ultimate Edition 2.7 32 BIT



Re: Using Sun Java instead of OpenJDK

Postby 2hot6ft2 » Fri Jun 04, 2010 2:49 pm

dathem wrote:Hello 2hot6ft2, I followed your steps and it worked good for me <BREW> <BREW>

I'm glad it helped, and that you found it useful dathem.
<BREW>
Image
HP G60-125NR - AMD Turion X2 64 - nVidia GeForce 8200M G - 128 GB SSD Dual boot - Ultimate Edition, Win 10 Pro
HP G60-121WM - AMD Sempron SI-40 - nVidia GeForce 8200M G - 128 GB SSD - Dual boot - Ultimate Edition, Win 10 Pro
Custom build, Rosewill Challenger ATX Gaming Case, AMD Phenom II x4 955 C3 rev., MSI 870A-G54, 2x ATI HD4850 512MB /256bit GDDR3 & dual precision, GSkill 8GB 1600 RAM - Multi boot - Ultimate Edition, Win 10 Pro, Beta Testing
User avatar
2hot6ft2
Moderator
 
Posts: 533
Joined: Sun May 25, 2008 12:30 pm
Location: Alabama, USA
Operating System: Ultimate Edition 3.2 64 BIT



Re: Using Sun Java instead of OpenJDK

Postby lindows » Sun Jun 13, 2010 3:03 am

it emitted error.
update-alternatives: error: no alternatives for xulrunner-1.9-javaplugin.so.
update-alternatives: error: alternative /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so for mozilla-javaplugin.so not registered, not setting.

:?:
Windows is the best virus detection tool ever made
User avatar
lindows
U.E. Graduate
U.E. Graduate
 
Posts: 52
Joined: Sun Jun 13, 2010 2:34 am
Location: GMT +05:30
Age: 30
Operating System: Ultimate Edition 3.1 32 BIT



Re: Using Sun Java instead of OpenJDK

Postby lindows » Sun Jun 13, 2010 3:09 am

Also i am still stuck at update 18,its not getting upgrded to 20
Windows is the best virus detection tool ever made
User avatar
lindows
U.E. Graduate
U.E. Graduate
 
Posts: 52
Joined: Sun Jun 13, 2010 2:34 am
Location: GMT +05:30
Age: 30
Operating System: Ultimate Edition 3.1 32 BIT



Re: Using Sun Java instead of OpenJDK

Postby lindows » Sun Jun 13, 2010 5:04 am

(slaps forehead)i forgot to install sun java plugin. :P


<BREW>
Windows is the best virus detection tool ever made
User avatar
lindows
U.E. Graduate
U.E. Graduate
 
Posts: 52
Joined: Sun Jun 13, 2010 2:34 am
Location: GMT +05:30
Age: 30
Operating System: Ultimate Edition 3.1 32 BIT



Re: Using Sun Java instead of OpenJDK

Postby JOHNNYG » Sun Jun 13, 2010 2:35 pm

lindows wrote:(slaps forehead)i forgot to install sun java plugin. :P


<BREW>

You stupid boy ! <BREW> :D :lol: ;) Many!!! is the times I have over looked the obvious ! :roll:
JOHNNYG
Image
Ultimate Eddiction<
Ultimate Edition STUDIO
Ultimate-E
Onyx 64
Pentium 4 processor
2x512 Kingston DDR memory
Maxtor Diamondmax 500 gig
Maxtor Maxline 80 gig, Split for testing only !
Maxtor Diamondmax 500 gig, Storage
Booting 8 OS's, No MS !
ATI 9600 series (RV350 AQ)graphics card
Sony DVD/CD Rewritable Drive DOUBLE LAYER DRU-820A/Sony DRU-800A CD DVD±RW Dual DVD Recorder
Team Leader at
http://www.ultimateeditionoz.com/
Image
Image
Image
User avatar
JOHNNYG
Site Admin
 
Posts: 1456
Joined: Mon Apr 13, 2009 12:02 am
Location: U.S.A. Illinois
Operating System: Ultimate Edition 3.2 32 BIT



Re: Using Sun Java instead of OpenJDK

Postby 2hot6ft2 » Sun Jun 13, 2010 5:58 pm

lindows wrote:(slaps forehead)i forgot to install sun java plugin. :P


<BREW>

Yeah, if you left that out it wouldn't work at all. :lol:
Image
HP G60-125NR - AMD Turion X2 64 - nVidia GeForce 8200M G - 128 GB SSD Dual boot - Ultimate Edition, Win 10 Pro
HP G60-121WM - AMD Sempron SI-40 - nVidia GeForce 8200M G - 128 GB SSD - Dual boot - Ultimate Edition, Win 10 Pro
Custom build, Rosewill Challenger ATX Gaming Case, AMD Phenom II x4 955 C3 rev., MSI 870A-G54, 2x ATI HD4850 512MB /256bit GDDR3 & dual precision, GSkill 8GB 1600 RAM - Multi boot - Ultimate Edition, Win 10 Pro, Beta Testing
User avatar
2hot6ft2
Moderator
 
Posts: 533
Joined: Sun May 25, 2008 12:30 pm
Location: Alabama, USA
Operating System: Ultimate Edition 3.2 64 BIT



Re: Using Sun Java instead of OpenJDK

Postby Jeahavee » Wed Jun 23, 2010 10:15 pm

This was so helpful <BREW> Maybe I can install limewire too (just update frostwire). :geek:
Jeahavee Jamillskill jGRite (just Get Right).
Divius
Hp Pavilion Dv61030us 1366x768
Quick Port
Creative X-Fi 5.1 (USB)
Logitech MX Revolution Mouse, Anywhere MX, G9
Intel 300gb ssd, Windows 210gb, Ubuntu 14.00 70gb (all 64 bits)

YoiYoru
AMD 965
evga 580 hydro
Water cooled...
4 sticks of 8gbs ddr3 HyperX Ram (1333mhz)
Viewsonic 23.6" 1920x1080
Sony 17" 1280x1024
1 WD Caviar 1tb, 1 WD Green 2tb
W7 Pro 256gbs ssd, Ultimate Edition 14.04 60gb (Always 64bits)
Logitech G710+, G13, MX Revolution
Func HS260

Giniro old build leftover parts
MSI NF980G65
2 BFG GTX 280 OC

http://www.youtube.com/jeahavee
http://www.reverbnation.com/jeahavee
@jGRite
User avatar
Jeahavee
U.E. College Professor
U.E. College Professor
 
Posts: 253
Joined: Wed Aug 12, 2009 11:59 pm
Location: North Florida
Age: 40
Operating System: Other Linux


Return to Ultimate Edition 2.6 (Including 2.6.5)

Who is online

Users browsing this forum: No registered users and 4 guests