Installing Java Problems


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Installing Java Problems
# 1  
Old 03-05-2011
Urgent Help!!!!!!

Hello,
When i attempt to install Java. I get this error code

Quote:
Command '"./jre-6u24-linux-i586.bin"'
failed with return code 126 and error message
-bash: line 6: ./jre-6u24-linux-i586.bin: Permission denied.
Can someone tell me what im doing wrong.

Last edited by Fob Upset; 03-06-2011 at 03:56 PM..
# 2  
Old 03-09-2011
you don't have permission to either clobber the file ./jre-6u24-linux-i586.bin OR
if it's a directory, to create files in it.

Just make that file clobberable:

chmod 777 ./jre-6u24-linux-i586.bin
# 3  
Old 03-11-2011
similar question but for upgrade

I was trying to upgrade my java 1.6.0_20 to java 1.6.0_24 as a self-learning experience. Felt nervous and want to know the right way. Yes, I downloaded the file from SUN:
Code:
jre-6u24-linux-x64.bin

and executed it. It was successfully installed in my local folder
Code:
/Downloads/jre1.6.0_24/

But, when I check the version it still displayed the old version which is linked the java executable by two symlinks after I recursively checked each file (for simplicity I put them directly here):
Code:
$ java -version
java version "1.6.0_20"
$which java
/usr/bin/java---> /etc/alternatives/java--->/usr/lib/jvm/java-6-openjdk/jre/bin/java

Now, my question is: can I replace the old java executable with the new one, or simply replace the whole folder that contains the java executable? I am aware there some new files. Not sure the whole story while I am trying to understand the basics.
I am using Ubuntu 10.10 Maverick Meerkat - released in October 2010 amd64-server in linux kernel 2.6.35.27-server & gnome 2.32.0.
Please someone give me a explanation. Thanks a lot!

Yifang
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Strange issue installing Java 8

I just intalled java8_64.jre and .sdk respectively installp -agXYd . Java8_64.jre Java8_64.sdk 2>&1 | tee installp.log Worked like a champ. Now I see this-- jeff@server:/usr> ls -l | grep java drwxr-xr-x 9 bin bin 512 Sep 22 2010 java14 drwxr-xr-x 7 bin bin ... (9 Replies)
Discussion started by: jeffs42885
9 Replies

2. Red Hat

help with installing java EE on fedora 14

Hi Forum Im a new to fedora and was wondering ,Can anybody direct me to a site that shows me how to install Java EE 6 SDK Update 1 (with JDK 6 Update 23) for fedora 14. NOT openjdk i need oracles java to develop a web app using tomcat 7.0 Any help would be much appreciated and thank you in advance (1 Reply)
Discussion started by: ShinTec
1 Replies

3. Solaris

Problems installing Solaris 10

I just built my new computer with a q6600 quad core, 4 gig ram, Nvidia vidoo card but when I try to install the latest Solaris 10 on it the keyboard is not being detected when the installation starts so I'm unable to go complete the installation. First I tried a USB keyboard and it didn't work,... (2 Replies)
Discussion started by: isomorphic
2 Replies

4. HP-UX

installing java 5.0 in HPUX B11.11

please help me how to install java 5.0 in HPUX ...where can i download java 5.0 for HPUX? thanks winky (6 Replies)
Discussion started by: winky
6 Replies

5. Solaris

Java Exceptions while installing Oracle

Hello. I was trying to installe oracle 10g on solaris t0 x86 and got few exception? Could you please suggest, what might be going wrong? $ ls -l total 32 drwxr-xr-x 9 oracle dba 512 Nov 21 03:50 doc drwxr-xr-x 5 oracle dba 512 Nov 21 03:50 install drwxr-xr-x 2... (5 Replies)
Discussion started by: panchpan
5 Replies

6. SCO

problems installing 5.0.7 on HP DL 380G5

hi there, i have a hp DL380G5 with hpsas array controller P400. when installing, i use bootstring as following; defbootstr link=hpsas hd=Sdsk Sdsk=hpsas(0,0,0,0) Srom=wd(0,0,0) then BTLD disk boots ok and looks like the drivers are loaded, all devices show up in boot screen, giving me a... (1 Reply)
Discussion started by: jose_antonio
1 Replies

7. UNIX for Dummies Questions & Answers

Installing Java on Openserver 6

Forgive the sheer volume of verbiage: Sco Openserver 6 - how to install Java 1.42_14b: The documentation says: "Make a subdirectory and unwind the tar file into that subdirectory. mkdir JAVA142 cd JAVA142; tar -xf ../OSR6_Java2_142.VOLS.tar Run the Software Manager with the command: ... (6 Replies)
Discussion started by: LetSco
6 Replies

8. Solaris

Problems de-installing NetConnect

I have run into a problem while attempting to de-install netconnect from a Sol8 box. We got an error during the un-install script when it tries to remove SUNWsrsrp. It can't find the srsuser. We have no idea what user was specified initially. I have tried to remove the package on its own, to no... (2 Replies)
Discussion started by: i_am_homer
2 Replies

9. Solaris

Problems Installing Top

I've been trying to install Top on our Solaris box but it's giving me some trouble. The uname -a command shows SunOS servername 5.9 Generic sun4u sparc SUNW,Ultra-250 I downloaded Top form www.unixtop.com. On the initial install I got errors because I didn't have a C compiler installed.... (2 Replies)
Discussion started by: KenLynch
2 Replies
Login or Register to Ask a Question