# Installing Java Problems

**URL:** <https://community.unix.com/t/installing-java-problems/283933>\
**Category:** UNIX for Dummies Questions & Answers\
**Created:** [March 5, 2011, 8:47pm UTC](https://community.unix.com/t/installing-java-problems/283933 "2011-03-05T20:47:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fob\_Upset](https://community.unix.com/letter_avatar/fob_upset/32/5_5575768a8748004e209b776fc1b2916d.png) [@Fob\_Upset](https://community.unix.com/u/Fob_Upset)\
**Post date:** [March 5, 2011, 8:47pm UTC](https://community.unix.com/t/installing-java-problems/283933/1 "2011-03-05T20:47:30Z")

</div>

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

> [@](#):
>
> 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.

---

<div class="post-metadata">

**Author:** ![quirkasaurus](https://community.unix.com/user_avatar/community.unix.com/quirkasaurus/32/1325_2.png) [@quirkasaurus](https://community.unix.com/u/quirkasaurus)\
**Post date:** [March 9, 2011, 10:24am UTC](https://community.unix.com/t/installing-java-problems/283933/2 "2011-03-09T10:24:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![yifangt](https://community.unix.com/letter_avatar/yifangt/32/5_5575768a8748004e209b776fc1b2916d.png) [@yifangt](https://community.unix.com/u/yifangt)\
**Post date:** [March 11, 2011, 5:47pm UTC](https://community.unix.com/t/installing-java-problems/283933/3 "2011-03-11T17:47:52Z")

</div>

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:

```nohighlight
jre-6u24-linux-x64.bin

```

and executed it. It was successfully installed in my local folder

```nohighlight
/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):

```nohighlight
$ 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
