JRE install bundles for 6u10 are non-executable

Martin Buchholz martinrb at google.com
Wed Jul 30 07:03:46 UTC 2008


On Tue, Jul 29, 2008 at 10:56 PM, Volker Simonis
<volker.simonis at gmail.com> wrote:
> Hi Martin,
>
> this is a known problem and it it noticed at the top of the download
> page at http://download.java.net/jdk6/ :

> "If you choose to download and install self-extracting JRE or DEBUG
> Jar bundles then you need to change the file permission to be
> executable in the bin directory after the installation."

Thanks.  I missed that.

> I think this is because of a long standing problem which doesn't allow
> the Java zip-classes to create executable files on *nix (i.e. there's
> no standard Java API which allows the manipulation of file access
> permissions on *nix except setting the read-only bit).

Of course, we would like better access to the OS
from Java APIs, and JSR 203 is providing that,
but today there's no reason a Java program can't
simply run /bin/chmod in a subprocess.
It's not like the installer is portable anyways,
with a string like "linux-i586" in its name.

Furthermore, the installer for the JDK actually works!
Why not use the same one for the JRE?

Martin



More information about the build-dev mailing list