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 ! |
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 |
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 ?????? |
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 |
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 ,..........
|
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 |
All times are GMT -5. The time now is 11:00 PM. |