Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install java jdk in RHEL?

Tags:

java

linux

redhat

I am following example commands from other sites but it isn't helping!

What am I doing wrong?

chmod +x jdk-6u24-linux-i586-rpm.bin
./jdk-6u24-linux-i586-rpm.bin

Results give me:

bash: ./jdk-6u24-linux-i586-rpm.bin: /bin/sh: bad interpreter: Permission denied

Ok.. after doing

sh jdk-6u24-linux-i586-rpm.bin

as suggested below, I get this:

enter image description here

Did the install fail? Is the file corrupted??? Thanks!!

like image 984
O_O Avatar asked Dec 21 '22 15:12

O_O


1 Answers

Try to run it using sh itself, i.e

sh jdk-6u24-linux-i586-rpm.bin
like image 160
uthark Avatar answered Dec 28 '22 23:12

uthark