I need to install the latest Java which is version 6 update 25. The version on my machine is 6 version 20. I have done the update from repos and it says up to date. How do I install the newset version so it works system wide? Thanks
Announcement
Collapse
No announcement yet.
Installing Java from Java.com (Solved)
Collapse
This topic is closed.
X
X
-
Re: Installing Java from Java.com
Why do I get this error when trying to run a java program?
Caused by: java.lang.UnsatisfiedLinkError: Cannot load 64-bit SWT libraries on 32-bit JVMOneiric 11.10 KDE Version 4.7.4<br />Duo core 1.8 Intel<br />4 gig ram<br />Nvidia Go 7300 Graphics<br />Dell E1505 Laptop<br /><br />I'm a happy pappy with Linux on my lappy!!!
- Top
- Bottom
-
Re: Installing Java from Java.com
Sounds like you downloaded and tried, or actually (don't know how) installed the 64-bit java, but you have a 32-bit system/version installed already??Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
Re: Installing Java from Java.com
I only install from repos so far. Does it mean I have 64 bit installed some how? Here is what I have... How do I know if 32 or 64 bit?
ed@ed-dell:~$ java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.7) (6b20-1.9.7-0ubuntu1)
OpenJDK Server VM (build 19.0-b09, mixed mode)
ed@ed-dell:~$
I want to install the latest version of Java but don't know how or where to install it to for system wide use like the version above.Oneiric 11.10 KDE Version 4.7.4<br />Duo core 1.8 Intel<br />4 gig ram<br />Nvidia Go 7300 Graphics<br />Dell E1505 Laptop<br /><br />I'm a happy pappy with Linux on my lappy!!!
- Top
- Bottom
Comment
-
Re: Installing Java from Java.com
Originally posted by eddieg780OpenJDK Runtime Environment (IcedTea6 1.9.7) (6b20-1.9.7-0ubuntu1)
If you want Oracle (formerly Sun) Java then you have to install it and run sudo update-java-alternatives to select it as the default JRE.
I'm not sure any of this explains the problem you seem to be experiencing, but there you go.
- Top
- Bottom
Comment
-
Re: Installing Java from Java.com
Ok so how do I get rid of icedtea and use java? Will uninstalling it from synaptic work? What else would I have to do? Thank you.Oneiric 11.10 KDE Version 4.7.4<br />Duo core 1.8 Intel<br />4 gig ram<br />Nvidia Go 7300 Graphics<br />Dell E1505 Laptop<br /><br />I'm a happy pappy with Linux on my lappy!!!
- Top
- Bottom
Comment
-
Re: Installing Java from Java.com
It should not be necessary to uninstall IcedTea.
If you want Oracle (formerly Sun) Java then you have to install it and run sudo update-java-alternatives to select it as the default JRE.
HTH
Edit
- Sun Java 6 installation instructions
- update-java-alternatives manpage, just in case you need it
- Top
- Bottom
Comment
-
Re: Installing Java from Java.com
I don't understand what I'm suppose to type in here...
ed@ed-dell:~$ sudo update-java-alternatives
usage: update-java-alternatives [--jre-headless] [--jre] [--plugin] [ -t|--test|-v|--verbose]
-l|--list [<jname>]
-s|--set <jname>
-a|--auto
-h|-?|--help
What is it asking me to do?Oneiric 11.10 KDE Version 4.7.4<br />Duo core 1.8 Intel<br />4 gig ram<br />Nvidia Go 7300 Graphics<br />Dell E1505 Laptop<br /><br />I'm a happy pappy with Linux on my lappy!!!
- Top
- Bottom
Comment
-
Re: Installing Java from Java.com
You may not have to do anything with update-java-alternatives. One thing you could do which may prove informative though:
Code:$ update-java-alternatives --list java-6-sun 63 /usr/lib/jvm/java-6-sun
These articles should shed some light on this.
- http://www.mail-archive.com/debian-java@lists.debian.org/msg11148.html
- https://help.ubuntu.com/community/Java?action=show&redirect=JavaInstallation
- http://ubuntuforums.org/archive/index.php/t-366104.html
- Top
- Bottom
Comment
-
Re: Installing Java from Java.com
Originally posted by eddieg780I want to install the latest version of Java but don't know how or where to install it to for system wide use like the version above.
Code:sudo apt-get install sun-java6-plugin sun-java6-jre
Code:sudo update-java-alternatives --jre -s java-6-sun
Code:sudo update-java-alternatives --jre -s java-6-openjdk
Code:sudo apt-get install kalternatives
[img width=400 height=278]http://i.imgur.com/VQczh.jpg[/img]
- Top
- Bottom
Comment
-
Re: Installing Java from Java.com
Thanks, ubuntuku. I didn't know about kalternatives.
- Top
- Bottom
Comment
-
Re: Installing Java from Java.com
Thank you ubuntuku. This is exactly what I needed. I did understand how to use update-java-alternatives. Worked perfectly.
Ok Telengard and thank you too.Oneiric 11.10 KDE Version 4.7.4<br />Duo core 1.8 Intel<br />4 gig ram<br />Nvidia Go 7300 Graphics<br />Dell E1505 Laptop<br /><br />I'm a happy pappy with Linux on my lappy!!!
- Top
- Bottom
Comment
-
Re: Installing Java from Java.com
Glad to know you got Sun Java working.
Originally posted by eddieg780Caused by: java.lang.UnsatisfiedLinkError: Cannot load 64-bit SWT libraries on 32-bit JVM
- Top
- Bottom
Comment
Comment