LinuxQuestions.org
Register a domain and help support LQ
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 11-04-2008, 02:16 PM   #1
kushal.agarwal
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Rep: Reputation: 0
How do i install JDK on my ubuntu 8.04


Hi
I had downloaded java_ee_sdk-5_06-linux from java's site, but not i am not able to install it. I am a total noob as i have installed ubuntu yesterday only. I tried using the chmod command to make it an executable but when i ran it i got this error

Code:
root@kushal-laptop:~# /home/kushal/Desktop/java_ee_sdk-5_06-linux.bin 
/home/kushal/Desktop/java_ee_sdk-5_06-linux.bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
i also doing somethings given in this forum to solve the problem but i wasnt able to like installing yum and trying to use this "apt" command but nothing fruitful came from it.

Can anyone please help me and explain things in simple noob language .

Thanks in advance

Cheers
Kushal
 
Old 11-04-2008, 02:38 PM   #2
immortaltechnique
Member
 
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Rep: Reputation: 32
sudo aptitude install sun-java5-jdk

That is if you have an internet connection

Last edited by immortaltechnique; 11-04-2008 at 02:40 PM.
 
Old 11-04-2008, 02:50 PM   #3
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
You could actually install the jdk6 - or even both. Go to System > Admin > Synaptic and scroll down the list to the packages that start with "sun". After installing, make sure to run
java -version in a terminal to make sure that it is the sun jdk that is being used as the default.
 
Old 11-04-2008, 09:43 PM   #4
kushal.agarwal
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,
Thanks , it worked out pretty fine, but just outta curiosity i wanted to kno if there is a way by which i can install the file i have already downloaded??
i dlded using normal mozilla and the file is a .bin file- "java_ee_sdk-5_06-linux.bin" stored on my desktop.

Thanks
 
Old 11-04-2008, 09:47 PM   #5
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
I don't recommend it because it doesn't integrate with the rest of the system as well as the package from the repositories but if you insist:
chmod +x package_name
sudo ./packagename

Last edited by jay73; 11-04-2008 at 10:49 PM.
 
Old 11-04-2008, 10:39 PM   #6
kushal.agarwal
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Original Poster
Rep: Reputation: 0
oh ok thanx

Cheers
 
Old 11-05-2008, 01:43 AM   #7
kushal.agarwal
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Hi
Another problem, when i tried to install netbeans onto my comp, now it is asking me to specify the JDK folder, how do i kno where the file i dlded from the net just gt installed, is there a default location or something which i can give, like the program files in windows..?
I am a complete noob so kindly help

Thanks in advance
Kushal
 
Old 11-05-2008, 05:56 AM   #8
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Quote:
how do i kno where the file i dlded from the net just gt installed,
Which file? netbeans or the jdk?

If you downloaded the installer from the netbeans site and you installed the jdk from the repositories, then the location of the jdk should be inserted automatically (/usr/lib/jvm/java-6-sun).

Last edited by jay73; 11-06-2008 at 01:49 AM.
 
Old 11-05-2008, 11:11 PM   #9
kushal.agarwal
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Original Poster
Rep: Reputation: 0
yep gt that boy it sure takes a lotta exploring
thanks man
Cheers
 
  


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
JDK Install fails with install.sfx.#### No such file during installation. weibullguy Linux From Scratch 13 04-14-2012 10:54 PM
Install jdk in different location noshankus Linux - Newbie 3 08-11-2008 01:47 PM
help to install jdk Carunkumar Ubuntu 11 12-25-2006 01:22 AM
Install JDK on Mepis tuxhats MEPIS 10 06-07-2006 08:14 AM
jdk 5.0 not working in Ubuntu crash_override_me Ubuntu 5 09-08-2005 12:13 PM


All times are GMT -5. The time now is 09:58 AM.

Main Menu
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