LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2011, 11:38 PM   #1
Nuwan Arambage
LQ Newbie
 
Registered: Jan 2011
Location: Colombo Sri Lanka
Distribution: Ubuntu
Posts: 9

Rep: Reputation: 0
Post Installing JDK 6 manually


Hi all,

I have downloaded the jdk-6u24-linux-i586.bin and gone through following steps.

nuwan@nuwan-laptop:~/Downloads$ sudo chmod +x jdk-6u24-linux-i586.bin

nuwan@nuwan-laptop:~/Downloads$ ./jdk-6u24-linux-i586.bin


works fine on me.These commands create a folder jdk1.6.0_24 in Downloads directory.

My Question is this.If I want to install packages manually.What is the best way to do it.

Where should I put artifacts which generates after executing above commands.

Another question, If I use sudo apt-get install sun-java6-jdk where does these downloaded packages are installed.I mean location.

I have been using Ubuntu 9.10

Thanks
Nuwan Arambage

Last edited by Nuwan Arambage; 04-07-2011 at 11:40 PM.
 
Old 04-08-2011, 12:48 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

After you uncompress the bin file you should move your jdb directory to a more 'logical' place and create a symbolic link to the java binary.
Code:
mv Downloads/jdk1.6.0_24 /usr/share
ln -s /usr/share/jdk1.6.0_24/bin/java /usr/bin/java
From that moment on you can call java from any directory in your system if /usr/bin is in your PATH which normally always is. If you install a package using the package manager the binary files are normally installed in /usr/bin on Ubuntu if I'm not mistaking.

Kind regards,

Eric
 
1 members found this post helpful.
Old 04-08-2011, 07:14 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
When you install the "jdk-6u24-linux-i586.bin" : Default location is /usr/java/.

Same jdk, using the Ubuntu packages ..
1) sudo apt-get install sun-java6-jdk :
http://packages.ubuntu.com/karmic-updates/sun-java6-jdk
File list http://packages.ubuntu.com/karmic-up...6-jdk/filelist
I.e. /usr/lib/jvm/java-6-sun-1.6.0.24

2) sudo update-alternatives --config java
... and then choose the "java-6-sun".
...
 
1 members found this post helpful.
  


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 to get JDK 1.5.0_08 and JDK 1.6.0_10 for Linux Redhat Itanium servers java_ascii Linux - Software 1 09-22-2009 11:17 AM
installing jdk tannu_ah Linux - Newbie 5 11-17-2008 03:14 PM
Help installing the Java JDK CS_Student_DrewU Programming 2 07-14-2007 10:43 PM
Installing Sun JDK naiveguy Linux - General 2 04-17-2006 02:15 PM
Installing IDEA and jdk shahnazyousuf Linux - Software 1 12-29-2004 01:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:34 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
Open Source Consulting | Domain Registration