Success: Java 6 on ReadyNAS Pro (RAIDiator 4.2.13)

A nice, warm, and cozy place for all third-party developers to congregate.

Success: Java 6 on ReadyNAS Pro (RAIDiator 4.2.13)

Postby teosoft » Thu Sep 30, 2010 10:35 pm

I tried using instructions from this thread: http://www.readynas.com/forum/viewtopic.php?f=7&t=36402 but apt was unable to find the packages. After a little research I managed to install official Sun Java6 backport for Dapper (which RAIDiator 4.2.13 is based on) and sharing my steps in this thread.

Official package information is found here:
http://packages.ubuntu.com/dapper-backports/sun-java6-jdk

The download link to the amd64 package takes you to the page with instructions on how to add the repository to the source list: http://packages.ubuntu.com/dapper-backports/amd64/sun-java6-jdk/download

The information above must be sufficient to install either JRE or JDK.
Now, the steps:

  1. Edit /etc/apt/sources.list
    Code: Select all
    vi /etc/apt/sources.list
  2. Add the following line:
    Code: Select all
    deb http://mirrors.kernel.org/ubuntu/ubuntu dapper-backports main multiverse
  3. Save the file.
  4. Run
    Code: Select all
    apt-get update
  5. To install JRE, run
    Code: Select all
    apt-get install sun-java6-jre
  6. To install JDK, run
    Code: Select all
    apt-get install sun-java6-jdk
  7. Checking JRE version:
    Code: Select all
    java -version
  8. Checking JDK version:
    Code: Select all
    javac -version

You might or might not need additional steps described (or not) in the original thread. Let me know if you get an error and I'll post it here if it's required.
teosoft
ReadyNAS Newbie
 
Posts: 5
Joined: Thu Sep 30, 2010 9:55 pm
ReadyNAS: Pro

Re: Success: Java 6 on ReadyNAS Pro (RAIDiator 4.2.13)

Postby sphardy » Fri Oct 01, 2010 1:23 am

Congrats!

out of interest - what is it you are trying to run that requires java 6?

NAS: Ultra-4, NV+ & Duo v2 :: ST31500341AS & HDS723020BLA642 Drives
Network: Netgear GS108Tv2 / DM111P :: Airport Extreme / Express & Time Capsule
Clients: OS X 10.6 - 10.8 :: Ubuntu 11.x :: Win 7 + SP#1
UPS: APC ES-550

Image
User avatar
sphardy
ReadyNAS Junkie
 
Posts: 4626
Joined: Thu Feb 28, 2008 3:34 am
Location: France
ReadyNAS: Ultra

Re: Success: Java 6 on ReadyNAS Pro (RAIDiator 4.2.13)

Postby teosoft » Fri Oct 01, 2010 7:58 am

sphardy wrote:Congrats!
Thanks!
sphardy wrote:out of interest - what is it you are trying to run that requires java 6?
Things like YAMJ and Apache Cassandra require Java 6.
teosoft
ReadyNAS Newbie
 
Posts: 5
Joined: Thu Sep 30, 2010 9:55 pm
ReadyNAS: Pro

Re: Success: Java 6 on ReadyNAS Pro (RAIDiator 4.2.13)

Postby boz0 » Tue Oct 12, 2010 12:06 pm

The apt source from mirrors.kernel.org didn't work for me, I had to use "deb http://archive.ubuntu.com/ubuntu" instead, but thanks for the info!
boz0
ReadyNAS Newbie
 
Posts: 18
Joined: Fri Oct 01, 2010 10:59 am
ReadyNAS: Ultra

Re: Success: Java 6 on ReadyNAS Pro (RAIDiator 4.2.13)

Postby teosoft » Tue Oct 12, 2010 3:57 pm

You're welcome. As long as you use backports it does not matter where they come from :)
teosoft
ReadyNAS Newbie
 
Posts: 5
Joined: Thu Sep 30, 2010 9:55 pm
ReadyNAS: Pro

Re: Success: Java 6 on ReadyNAS Pro (RAIDiator 4.2.13)

Postby boz0 » Wed Oct 13, 2010 7:51 am

teosoft wrote:You're welcome. As long as you use backports it does not matter where they come from :)


Just meant the mirrors.kernel.org repository didn't seem to know the dapper-backports section :)
boz0
ReadyNAS Newbie
 
Posts: 18
Joined: Fri Oct 01, 2010 10:59 am
ReadyNAS: Ultra

Re: Success: Java 6 on ReadyNAS Pro (RAIDiator 4.2.13)

Postby ReVolt » Wed Oct 13, 2010 1:14 pm

I'm trying to install java6 on my Readynas NXV Pioneer. My sources.list looks like this:
Code: Select all
deb http://www.readynas.com/packages 4.2.13/
deb http://archive.debian.org/debian etch main
deb http://archive.ubuntu.com/ubuntu dapper-backports main multiverse

When I execute apt-get update, I receive the following errors:
Code: Select all
Hit http://archive.ubuntu.com dapper-backports/multiverse Packages
Ign http://www.readynas.com 4.2.13/ Release
Ign http://www.readynas.com 4.2.13/ Packages/DiffIndex
Hit http://www.readynas.com 4.2.13/ Packages
Fetched 38.6kB in 1s (24.3kB/s)
Reading package lists... Done
W: GPG error: http://archive.ubuntu.com dapper-backports Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
W: You may want to run apt-get update to correct these problems


What am I doing wrong? I'm kinda new to linux, so please excuse me ;-)
ReVolt
ReadyNAS Newbie
 
Posts: 3
Joined: Sun Oct 10, 2010 10:23 am
ReadyNAS: NVX

Re: Success: Java 6 on ReadyNAS Pro (RAIDiator 4.2.13)

Postby teosoft » Fri Oct 15, 2010 12:51 pm

Just saw your question. For some reason I did not get notification from the forums.

The page below answers your question. Look into comments.

http://www.debianadmin.com/adding-ubuntu-repositories.html
teosoft
ReadyNAS Newbie
 
Posts: 5
Joined: Thu Sep 30, 2010 9:55 pm
ReadyNAS: Pro

Re: Success: Java 6 on ReadyNAS Pro (RAIDiator 4.2.13)

Postby beefy314 » Thu Jun 23, 2011 10:48 pm

teosoft wrote:
sphardy wrote:Congrats!
Thanks!
sphardy wrote:out of interest - what is it you are trying to run that requires java 6?
Things like YAMJ and Apache Cassandra require Java 6.


Were you able to run yamj without a PC using this?
beefy314
ReadyNAS Newbie
 
Posts: 23
Joined: Tue Jun 14, 2011 11:32 pm
ReadyNAS: Ultra

Re: Success: Java 6 on ReadyNAS Pro (RAIDiator 4.2.13)

Postby teosoft » Thu Jun 23, 2011 11:09 pm

No, I switched to another solution.
teosoft
ReadyNAS Newbie
 
Posts: 5
Joined: Thu Sep 30, 2010 9:55 pm
ReadyNAS: Pro


Return to ReadyNAS Developers Network



Who is online

Users browsing this forum: Daumoa [Crawler] and 1 guest