LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 06-25-2009, 04:23 PM   #1
TechHawk
LQ Newbie
 
Registered: May 2004
Location: Ontario, Canada
Distribution: Fedora Core 2
Posts: 28

Rep: Reputation: 15
Smile I need help to install sun java 2 with ubuntu 9.04


Hi. I have tried my best to get java 2 installed with ubuntu 9.04.
I have downloaded the file from java.com called jr1-6u14-linux-i586.bin and I believe I have successfully installed it in my /home/sjia directory. The required folder is called jre1.6.0_14 is there. I followed all the install instruction from there web site and firefox will not recognized the new installation.
I also followed the instructions given on ubuntu's web site and still nothing.
I used the command sudo update-alternatives --config java but all I get back is only 1 java installed, nothing to configure.
I think I need direct help. Thanks for your time.

Last edited by TechHawk; 06-25-2009 at 10:23 PM. Reason: following post works
 
Old 06-25-2009, 08:07 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 82
Try this in a terminal:
Code:
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
Take a look at this link: http://www.ubuntugeek.com/how-to-ins...04-jaunty.html.

Let us know if that helps. Down at the bottom of the page I've linked to, there is a description of checking within firefox whether it is aware of the java plugin.
 
Old 06-25-2009, 08:10 PM   #3
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 82
Just for your info, this is the output I have from:
Code:
java -version
Code:
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Server VM (build 11.3-b02, mixed mode)
I guess the important thing to notice here is the version, which is 1.6.0_13, as opposed to your 1.6.0_14, but it really should make no difference, unless there is a technical reason you need 1.6.0_14?
 
Old 06-25-2009, 08:30 PM   #4
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,388

Rep: Reputation: 187Reputation: 187
are you wanting java jre runtime or the java flashplugin for browsers. for jre runtime this should work
sudo ln -s /home/sjia/jre1.6.0_14/bin/java /usr/bin/java

Last edited by colorpurple21859; 06-25-2009 at 08:33 PM.
 
Old 06-25-2009, 09:32 PM   #5
TechHawk
LQ Newbie
 
Registered: May 2004
Location: Ontario, Canada
Distribution: Fedora Core 2
Posts: 28

Original Poster
Rep: Reputation: 15
Irishbitte, thanks for your help, it worked perfectly.
 
Old 06-25-2009, 09:40 PM   #6
TechHawk
LQ Newbie
 
Registered: May 2004
Location: Ontario, Canada
Distribution: Fedora Core 2
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colorpurple21859 View Post
are you wanting java jre runtime or the java flashplugin for browsers. for jre runtime this should work
sudo ln -s /home/sjia/jre1.6.0_14/bin/java /usr/bin/java
I am not going to try this link, since I know have it working but thanks for your time.

I am sure it will work. I was trying to link the java file to /usr/bin/java but i did not know how to do it. I am rusty since I have not used linux in 4 years, but I'm back. Thanks again

Last edited by TechHawk; 06-25-2009 at 10:21 PM.
 
Old 06-26-2009, 02:42 PM   #7
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 82
I suggest you look at other ways of doing things in ubuntu before you make any softlinks yourself, generally if a package requires something as a dependency, it will be installed correctly so that it can be used the right way!

Glad it worked out for you.
 
  


Reply

Tags
java, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using Sun java in ubuntu rahul_goutam Programming 2 08-14-2008 03:07 AM
cant install Sun Java on Fedora 7 nOmArch Linux - Newbie 1 10-13-2007 09:22 AM
Javascript trouble in mozilla after install java sun danchiaperini Red Hat 1 11-09-2004 04:40 PM
sun java not working inspite of successful install coolamit78 Linux - Software 2 03-02-2004 12:43 PM
Java sun...install if it kills me Ogledbyoldmen Linux - Software 30 10-26-2003 10:02 PM


All times are GMT -5. The time now is 10:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration