NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
roger_roger
Dec 12, 2009Tutor
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.
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.
20 Replies
Replies have been turned off for this discussion
- ReVoltAspirantI 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. - Nas_RAspirantSure :) 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 keygpg --export --armor 40976EAF437D05B5| apt-key add -
now try again the "apt-get update and apt-get install sun-java6-jre".. :) - dmonks71AspirantIs 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 - WhoCares_MentorThere is NO JAVA for the NV+.
-Stefan - dmonks71Aspirant
WhoCares? wrote: There is NO JAVA for the NV+.
-Stefan
Thank you for your reply. - ScouserAspirant
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 commandMainStore:~# 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? - kiwi1969AspirantI 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 - ScouserAspirantDont 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 - WhoCares_MentorI may be repeating myself but: There is NO JAVA on Sparc based ReadyNAS systems.
-Stefan - MastacheataAspirant
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.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!