× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Re: is there a Java VM for NV+

roger_roger
Tutor

is there a Java VM for NV+

Is it possible to install java on the readynas NV+

I have a simple text based java application that grabs data from a webpage and loads to mysql on the readynas.
It would be nice if I could schedule and run it all from the NV+ without the need to have my PC do the java part.
Message 1 of 21
Nas_R
Aspirant

Re: is there a Java VM for NV+

I was able to manage to install Java 6 on the pro.
(not sure if the NV+ CPU/memory is able to handle it.)

Anyhow here are the steps...

In your /etc/apt/sources.list add
deb http://us.archive.ubuntu.com/ubuntu dapper main restricted 
deb http://us.archive.ubuntu.com/ubuntu dapper universe multiverse


then I did;
apt-get update
apt-get install sun-java6-jdk


After this the rest of the process will display a dialog that will require you to accept the license agreement. When you do, the rest of the setup will happen on its own.

change temporary in
dpkg-reconfigure debconf
NonInteractive to Readline, once completed change it back

When you're on the command prompt type

javac -version
or
java -version 


You should be good to go! 😄
Message 2 of 21
roger_roger
Tutor

Re: is there a Java VM for NV+

Nas-R wrote:
I was able to manage to install Java 6 on the pro.
(not sure if the NV+ CPU/memory is able to handle it.)

Anyhow here are the steps...

In your /etc/apt/sources.list add
deb http://us.archive.ubuntu.com/ubuntu dapper main restricted 
deb http://us.archive.ubuntu.com/ubuntu dapper universe multiverse


then I did;
apt-get update
apt-get install sun-java6-jdk


After this the rest of the process will display a dialog that will require you to accept the license agreement. When you do, the rest of the setup will happen on its own.

change temporary in
dpkg-reconfigure debconf
NonInteractive to Readline, once completed change it back

When you're on the command prompt type

javac -version
or
java -version 


You should be good to go! 😄


Sorry for delay in the response, just come back from the year end vacation.
First of all thanks for the reply.

My NV+ is vanilla out of the box installation so the commands above don't appear on my box...... 😞

How scarey is the process of changing it to handle this? I have plenty experience with linux , but there's alot of data on the NV+ that is not worth losing.
Message 3 of 21
dbott67
Guide

Re: is there a Java VM for NV+

You would need to install the EnableRootSSH add-on in order to gain root access, followed by the APT add-on.

Both add-ons can be found here under the SHELL ACCESS PATCHES: http://www.readynas.com/?page_id=617

You do not need the ToggleSSH add-on (it will disable SSH access if you run it).

As for whether or not it will work, there are others that have also indicated that the CPU on the NV/NV+/Duo is not powerful enough.
Message 4 of 21
roger_roger
Tutor

Re: is there a Java VM for NV+

dbott67 wrote:
You would need to install the EnableRootSSH add-on in order to gain root access, followed by the APT add-on.

Both add-ons can be found here under the SHELL ACCESS PATCHES: http://www.readynas.com/?page_id=617

You do not need the ToggleSSH add-on (it will disable SSH access if you run it).

As for whether or not it will work, there are others that have also indicated that the CPU on the NV/NV+/Duo is not powerful enough.



Will give it a whirl..... The application I have is so undemanding & I don't care if it takes 10 mins to run even if it only takes 5 secs on my Mac. It's a once per day app, the important thing is it runs by itself...... otherwise I'm going to have to crack out the python or perl books.....
Message 5 of 21
berkut1
Tutor

Re: is there a Java VM for NV+

Nas-R wrote:
I was able to manage to install Java 6 on the pro.
(not sure if the NV+ CPU/memory is able to handle it.)

Anyhow here are the steps...

In your /etc/apt/sources.list add
deb http://us.archive.ubuntu.com/ubuntu dapper main restricted 
deb http://us.archive.ubuntu.com/ubuntu dapper universe multiverse


then I did;
apt-get update
apt-get install sun-java6-jdk


After this the rest of the process will display a dialog that will require you to accept the license agreement. When you do, the rest of the setup will happen on its own.

change temporary in
dpkg-reconfigure debconf
NonInteractive to Readline, once completed change it back

When you're on the command prompt type

javac -version
or
java -version 


You should be good to go! 😄


I added the two lines to the end of my sources.list file and then attempted to use your instructions to install java jdk on my PRO and I got the following errors
nas3:/etc/apt# apt-get update
Ign http://www.readynas.com 4.2.13/ Release.gpg
Get:1 http://us.archive.ubuntu.com dapper Release.gpg [189B]
Hit http://us.archive.ubuntu.com dapper Release
Err http://us.archive.ubuntu.com dapper Release

Ign http://www.readynas.com 4.2.13/ Release
Get:2 http://archive.debian.org etch Release.gpg [1033B]
Get:3 http://us.archive.ubuntu.com dapper Release [34.8kB]
Ign http://www.readynas.com 4.2.13/ Packages/DiffIndex
Hit http://archive.debian.org etch Release
Ign http://www.readynas.com 4.2.13/ Packages
Hit http://www.readynas.com 4.2.13/ Packages
Ign http://archive.debian.org etch/main Packages/DiffIndex
Hit http://archive.debian.org etch/main Packages
Ign http://us.archive.ubuntu.com dapper Release
Ign http://us.archive.ubuntu.com dapper/main Packages/DiffIndex
Ign http://us.archive.ubuntu.com dapper/restricted Packages/DiffIndex
Ign http://us.archive.ubuntu.com dapper/universe Packages/DiffIndex
Ign http://us.archive.ubuntu.com dapper/multiverse Packages/DiffIndex
Hit http://us.archive.ubuntu.com dapper/main Packages
Hit http://us.archive.ubuntu.com dapper/restricted Packages
Hit http://us.archive.ubuntu.com dapper/universe Packages
Hit http://us.archive.ubuntu.com dapper/multiverse Packages
Fetched 34.9kB in 2s (17.0kB/s)
Reading package lists... Done
W: GPG error: http://us.archive.ubuntu.com dapper 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
nas3:/etc/apt# apt-get install sun-java6-jdk
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package sun-java6-jdk


Running apt-get update again did not correct the problem. If you could give me the current deb lines for accessing the java jdk I would appreciate it.

Thanks
Message 6 of 21
super_poussin
Virtuoso

Re: is there a Java VM for NV+

for java on X86 use my addon

for sparc Sorry : nothing
Message 7 of 21
berkut1
Tutor

Re: is there a Java VM for NV+

super-poussin wrote:
for java on X86 use my addon

for sparc Sorry : nothing

Understood about the sparc, but fantastic news about the x86 platform!
Message 8 of 21
Nas_R
Aspirant

Re: is there a Java VM for NV+

Sorry for some delay;

It seems that Sun has moved their SUN-6-SDK to another location, just add this into your sources.list
deb http://archive.canonical.com/ lucid partner
and try again.

To verify:
Crius:/etc/apt# java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
Crius:/etc/apt# javac -version
javac 1.6.0_20
Crius:/etc/apt#
Message 9 of 21
berkut1
Tutor

Re: is there a Java VM for NV+

Nas-R wrote:
Sorry for some delay;

It seems that Sun has moved their SUN-6-SDK to another location, just add this into your sources.list
deb http://archive.canonical.com/ lucid partner
and try again.

To verify:
Crius:/etc/apt# java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
Crius:/etc/apt# javac -version
javac 1.6.0_20
Crius:/etc/apt#


Thanks, that did the trick!
Message 10 of 21
Nas_R
Aspirant

Re: is there a Java VM for NV+

Glad I'm able to help you.
Message 11 of 21
ReVolt
Aspirant

Re: is there a Java VM for NV+

I have the same problem, but the suggested solution doen´t work. I'm trying this on my ReadyNas NVX Pioneer. My sources.list looks like this:

deb http://www.readynas.com/packages 4.2.13/
deb http://archive.debian.org/debian etch main
deb http://us.archive.ubuntu.com/ubuntu dapper main restricted
deb http://us.archive.ubuntu.com/ubuntu dapper universe multiverse
deb http://archive.canonical.com/ lucid partner

When i run apt-get update the following errors are shown.

[.......]
Hit http://www.readynas.com 4.2.13/ Packages
Fetched 43.4kB in 1s (29.9kB/s)
Reading package lists... Done
W: GPG error: http://archive.canonical.com lucid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
W: GPG error: http://us.archive.ubuntu.com dapper 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

When I try to install java, apt-get install sun-java6-jdk, I get errors about dependicies.

NAS:/# apt-get install sun-java6-jre
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
libsigc++-2.0-dev: Depends: pkg-config but it is not going to be installed
Depends: libstdc++-dev
sun-java6-jre: Depends: java-common (>= 0.24) but it is not going to be installed
Depends: sun-java6-bin (>= 6.20dlj-1ubuntu3) but it is not going to be installed or
ia32-sun-java6-bin (>= 6.20dlj-1ubuntu3) but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Does anyone have an idea to resolve the Public Key errors?
Thansk in advance.
Message 12 of 21
Nas_R
Aspirant

Re: is there a Java VM for NV+

Sure 🙂 The set of commands to add the missing key is (at your own risk):

gpg --recv-keys 40976EAF437D05B5

If above give you an error then try this; (use an defined keyserver)
gpg –keyserver keyserver.ubuntu.com –recv-keys 40976EAF437D05B5

and finally add the key
gpg --export --armor 40976EAF437D05B5| apt-key add -

now try again the "apt-get update and apt-get install sun-java6-jre".. 🙂
Message 13 of 21
dmonks71
Aspirant

Re: is there a Java VM for NV+

Is there another new location for sun-java6-jdk? I made the recommended changes to my /etc/apt/sources.list and get the following error:

NAS_01:~# apt-get install sun-java6-jdk
Reading Package Lists... Done
Building Dependency Tree... Done
Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package sun-java6-jdk has no installation candidate

My file looks like:

deb http://www.readynas.com/packages readynas/

deb http://archive.debian.org/debian sarge main contrib non-free
deb http://us.archive.ubuntu.com/ubuntu dapper main restricted
deb http://us.archive.ubuntu.com/ubuntu dapper universe multiverse
deb http://archive.canonical.com/ lucid partner

deb-src http://archive.debian.org/debian sarge main contrib non-free
Message 14 of 21
WhoCares_
Mentor

Re: is there a Java VM for NV+

There is NO JAVA for the NV+.

-Stefan
Message 15 of 21
dmonks71
Aspirant

Re: is there a Java VM for NV+

WhoCares? wrote:
There is NO JAVA for the NV+.

-Stefan



Thank you for your reply.
Message 16 of 21
Scouser
Aspirant

Re: is there a Java VM for NV+

super-poussin wrote:
for java on X86 use my addon

for sparc Sorry : nothing


Maybe I am missing something. I installed your addon. frontview has the tick selected.
I SSH into my Pro 6 and type the following command

MainStore:~# java -v
-bash: java: command not found
MainStore:~# javac -v
-bash: javac: command not found
MainStore:~#


I run a find and it doesn't find java.

Did I miss something?
Message 17 of 21
kiwi1969
Aspirant

Re: is there a Java VM for NV+

I was wondering if anyone has tried compiling IcedTea for NV+
It is meant to be totally open source so should be possible ?
Even if it is using zero interpreter (i.e. no JIT), it would be better than nothing.

It seems that there are instructions for Sparc on Gento Linux which may be useful here.
Their method requires someone getting Portage scripts working on Debian Linux first.

Here are some links if someone wants to get things started (It is probably beyond my ability, but I think I will give things a go using the Sparc QEMU image)
http://en.gentoo-wiki.com/wiki/Java_on_SPARC
Info about trying to get Portage on other linux systems is here : http://forums.gentoo.org/viewtopic.php?t=125553
Message 18 of 21
Scouser
Aspirant

Re: is there a Java VM for NV+

Dont know about the NV+ but on my Pro 6, the following worked for me

1. Add "deb http://archive.debian.org/debian-backports etch-backports main non-free" to /etc/apt/sources.list
2. type apt-get update
3. type dpkg-reconfigure debconf
Select Option 1 Dialog
Select Option 3 Medium
4. type apt-get install sun-java6-jre
Message 19 of 21
WhoCares_
Mentor

is there a Java VM for NV+

I may be repeating myself but: There is NO JAVA on Sparc based ReadyNAS systems.

-Stefan
Message 20 of 21
Mastacheata
Aspirant

Re: is there a Java VM for NV+

kiwi1969 wrote:
I was wondering if anyone has tried compiling IcedTea for NV+
It is meant to be totally open source so should be possible ?
Even if it is using zero interpreter (i.e. no JIT), it would be better than nothing.

Open Source does not neccessarily mean architecture independent. Even if it's written in some high level language like c++ the sourcecode is not neccessarily portable to different architectures by simply compiling it for that architecture.
It might be possible to extract the concepts and adapt them to the different environment though. This is likely to be a lifetime task for any normal person. Especially since we are talking about rebuilding a complete virtual abstraction layer between the system and the java bytecode.

kiwi1969 wrote:
It seems that there are instructions for Sparc on Gento Linux which may be useful here.
Their method requires someone getting Portage scripts working on Debian Linux first.

Here are some links if someone wants to get things started (It is probably beyond my ability, but I think I will give things a go using the Sparc QEMU image)
http://en.gentoo-wiki.com/wiki/Java_on_SPARC
Info about trying to get Portage on other linux systems is here : http://forums.gentoo.org/viewtopic.php?t=125553

Not sure what they are referring to in this case, but keep in mind there are 2 very different sparc architectures around.
What is commonly referred to as Sparc nowadays is the late 64 bit sparc based processors like they were used in Sun Workstations.
In the Sparc ReadyNAS systems you can find a processor based on the 32 bit Sparc architecture.
The Processors in the NAS systems are compact and adapted versions of the processors that Sun built from 1992-1995 (V8 generation).
Debian discontinued support for these and even most of the newer Sparc processors that were introduced until 2007 in version 4. (Read: Debian 3 Sarge was the last Debian that had active support for the processor used on the NAS)
Most of the packages that come with the Radiator Firmware are custom built by Infrant or Netgear and thus more current than what is available from standard debian repositories.

As far as I know, the Gentoo project does not currently maintain a version for the V8 generation Sparc processors. That means your links are referring to a newer Sparc architecture not compatible with the processor used in our NAS boxes.
Message 21 of 21
Top Contributors
Discussion stats
  • 20 replies
  • 6081 views
  • 1 kudo
  • 11 in conversation
Announcements