LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 05-15-2007, 04:19 AM   #1
eerpini
Member
 
Registered: Mar 2007
Posts: 36

Rep: Reputation: 15
problem installing SUN JDK 1.5.10


when i tried to run the rpm.bin file containing the latest Sun jdk , , i run the following command :
./*rpm.bin ,,,.......after changing the permissions of the file, ....... and then it shows the following error:

bash: ./jdk-1_5_0-linux-i586.rpm.bin: /bin/sh: bad interpreter: Permission denied

also when i tried to run the netbeans file it showed the error that : permission denied !

Last edited by eerpini; 05-15-2007 at 04:23 AM.
 
Old 05-15-2007, 05:35 AM   #2
woodpecka_04
Member
 
Registered: May 2007
Distribution: Fedora Core 6
Posts: 47

Rep: Reputation: 15
I am not really sure how to solve your problem but I installed jdk 1_5_0_11 (the latest update to 1.5) the other day, I went about it a different way that works:

Instead of downloading the "Linux RPM in self extracting file" - the .rpm.bin, download the "Linux self extracting file" - the .bin

Execute it using ./jdk-1_5_0_11-linux-i586.bin
Then type yes to accept the liscence agreement

Then as root:
mv -f jdk1.5* /opt/jdk1.5
where "jdk1.5*" is the folder it has just created

Then, if you want to use Sun's java rather than GNU java...
/usr/sbin/alternatives --install /usr/bin/java java /opt/jdk1.5/bin/java 2
echo 2 | sudo /usr/sbin/alternatives --config java

Then run java -version and this should say you are using the version you have just installed

N.B you will need to do a similar thing for functions such as javac if you are wanting to use those...e.g. /usr/sbin/alternatives --install /usr/bin/javac javac /opt/jdk1.5/bin/javac 2

That way might not be the best way, but it has worked for me
 
Old 05-16-2007, 04:58 AM   #3
eerpini
Member
 
Registered: Mar 2007
Posts: 36

Original Poster
Rep: Reputation: 15
well thanks for the reply ,.....
but i found out later that i was actually extracting the file from the DVD itself , so i had the permissions problem , .... i have figured that out now ,...... but u know , i had tried to install JDK solely for NETBEANS and that does not work on FC6 bcos , netbeans has some problem with COMPIZ , the default window manager with FC6, so i rather shifted to UBUNTU , and i have now succesfully installed both JDK6 and NETBEANS 5.5 !

hey do u have any idea wheer EMACS can be obtained for UBUNTU ??????
 
Old 05-16-2007, 08:09 AM   #4
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
from GUI:
go to system > Synaptic Package manager > then search from emacs

from shell:
go to application > Accesssories > Terminal
Code:
sudo apt-get install emacs

Last edited by waelaltaqi; 05-16-2007 at 08:10 AM.
 
Old 05-16-2007, 11:24 PM   #5
eerpini
Member
 
Registered: Mar 2007
Posts: 36

Original Poster
Rep: Reputation: 15
ya thanx man ,.... but at present i am not able to get connected thru ubuntu to the net so i have to think of something else, ...... ...but for the time being i have installed JEDIT and it is working well, as it also supports indentation for .c and .cpp files , ... that is C and C++ files ,..........
 
Old 07-25-2007, 07:20 AM   #6
wongdg
Member
 
Registered: May 2006
Location: Kuching, Malaysia
Distribution: Debian 2.4 & 2.6
Posts: 42

Rep: Reputation: 16
I've found a solution

Being a part of linux community I feel obliged to share with you the solution I have discovered. I have solved my headache with below (quote):

http://www.velocityreviews.com/forum...on-denied.html

On 2004-11-03, damon <> wrote:

> It appears that my sh is actually just a link to /bin/bash. Altering
> permissions has not made any difference. Must I install sh?

No; bash *IS* sh, for all practical purposes. When invoked as "sh" instead
of "bash" it restricts itself to behaving like sh.

Now, how are you trying to run the installer? Are you doing something
like "./firefox-installer.sh" or are you explicitly telling sh to run it,
e.g. "sh ./firefox-installer.sh"?

--

-John ()

********end quote************
Wilson
 
  


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
Installing Sun JDK naiveguy Linux - General 2 04-17-2006 02:15 PM
installing Sun JDK in FC5 fakie_flip Linux - Software 1 04-14-2006 05:28 PM
How to run Sun JDK 1.5 without conflict from libgcj? rhimbo Linux - Software 1 12-08-2004 06:37 PM
knoppix (Debain) Installing SUN Jdk 1.4.0_01 freakhead Linux - Newbie 2 07-28-2004 04:15 PM
Sun jdk 1.4.1 crashes on compilation juby Programming 1 06-28-2003 05:36 AM


All times are GMT -5. The time now is 09:06 PM.

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