Saturday, 2 October 2010

Installing Java on x86 ReadyNAS

Here's a step by step guide to installing Java from the official Debian Etch repository.

Java 5

1. Add the non-free repository to /etc/apt/sources.list
deb etch non-free

2. Run apt-get update

3. Before installing java, we need to make a small update: Sun (Oracle) force you to accept a license when installing Java, but there is no way to do this when installing via apt-get, which causes the install to fail. So we need to setup the acceptance beforehand. To do this create a text file with the contents:

    sun-java5-jdk shared/accepted-sun-dlj-v1-1 select true
    sun-java5-jre shared/accepted-sun-dlj-v1-1 select true
    sun-java6-jdk shared/accepted-sun-dlj-v1-1 select true
    sun-java6-jre shared/accepted-sun-dlj-v1-1 select true

Then run

4. Install :
apt-get install sun-java5-jre

Java 6

1. Add the following repository to the file /etc/apt/sources.list
deb etch-backports main contrib non-free

2. Update apt:
apt-get update

3. Install Java
apt-get install sun-java6-jre

No comments:

Post a Comment