LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-18-2006, 11:22 AM   #1
paul85
Member
 
Registered: Jul 2005
Location: New Jersey
Distribution: FC 5, Ubuntu
Posts: 92

Rep: Reputation: 15
trying to install java 1.5


I downloaded the java5....deb packages but I cant seem to get them installed, also tried using automatix but with no luck.

I have an appp which requires java 1.5.

$ which java
/usr/bin/java
$ java -version
java version "1.4.2-02"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-02)
Java HotSpot(TM) Client VM (build Blackdown-1.4.2-02, mixed mode)


what am I missing? should I download the .bin files from java and install that way?

Thanks
 
Old 10-18-2006, 11:32 AM   #2
pda_h4x0r
Member
 
Registered: Feb 2006
Location: somewhere in cyberspace
Distribution: Debian, Familiar
Posts: 380

Rep: Reputation: 31
Quote:
Originally Posted by paul85
what am I missing? should I download the .bin files from java and install that way?

Thanks
That's what I did.
 
Old 10-18-2006, 11:34 AM   #3
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
If you have the universe and multiverse repositories enabled do :
Code:
sudo apt-get install sun-java5-jre
 
Old 10-18-2006, 11:58 AM   #4
Redeye2
Member
 
Registered: Feb 2004
Posts: 489

Rep: Reputation: Disabled
Do as mrcheeks says, use the prepackaged builds since they're easier to install.
Also, don't forget to run sudo update-alternatives --config java to choose the default JVM you want.
 
Old 10-18-2006, 01:04 PM   #5
paul85
Member
 
Registered: Jul 2005
Location: New Jersey
Distribution: FC 5, Ubuntu
Posts: 92

Original Poster
Rep: Reputation: 15
I'm going to try it now. I'll let you know what happens

success:

java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)


I don't recall seeing the sudo update...java information before

still learning debian system

Thanks all

Last edited by paul85; 10-18-2006 at 01:09 PM.
 
Old 10-18-2006, 01:19 PM   #6
Redeye2
Member
 
Registered: Feb 2004
Posts: 489

Rep: Reputation: Disabled
I think that the installer scripts should automatically ask you for the default option if there's more than one. Thinking about that update-alternatives command out of the blue is not really user friendly lol.
 
Old 10-21-2006, 06:50 PM   #7
paul85
Member
 
Registered: Jul 2005
Location: New Jersey
Distribution: FC 5, Ubuntu
Posts: 92

Original Poster
Rep: Reputation: 15
Thaks for the help
 
  


Reply


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
Where do I install Java? No_Good_With_Linux Debian 4 06-04-2006 02:35 PM
java does not install in opt but install in usr bbmak Linux - Software 6 10-02-2005 11:13 PM
what directory is java install? what CMD determined where java is install? Thks. suse2166 Linux - Newbie 2 09-04-2005 08:24 PM
How Do you install Java? wizjr1 Fedora 3 07-03-2004 08:52 AM
Java install doralsoral Linux - Software 10 09-19-2003 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:19 AM.

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
Open Source Consulting | Domain Registration