NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

clloyd09's avatar
clloyd09
Aspirant
Sep 22, 2008

Installing Sun Java on ReadyNAS Duo?

I'm a new user of the ReadyNAS Duo. Great machine!! I've gotten it all set up, added root ssh access, installed apt-get, and added a few packages. The one thing I can't seem to find anywhere is how (or even if) I can install Sun Java on the box. Apparently, it's available as a package for i586 Ubuntu/Debian distributions. And Sun has a .deb package for Solaris Sparc boxes, and a .bin "package" that can be turned into a .deb file with the java-package tool. There's also an executable sh file that is supposed to install Java. The problem is that none of these options appear to work with the combination of Debian and Sparc.

My goal (aside from wanting to have Java) is to run a 3rd party backup server called CrashPlan. It runs quite nicely on Ubuntu, but doesn't seem to want to run with non-Sun Java. Any suggestions or advice would be appreciated.

5 Replies

  • Maybe see if that application will run under SableVM.
    SableVM is a free, open source, and clean room Java virtual machine available under the terms of GNU Lesser General Public License (LGPL)

    You should be able to 'apt-get install sablevm' on the ReadyNAS.
  • clloyd09 wrote:
    Thanks! I'll give it a shot tonight. :)

    No luck at all. I installed sablevm just fine, but it doesn't do much of anything. I tried running a basic "HelloWorld.class" program, and I just get the following:

    % java Test
    java.lang.UnsupportedClassVersionError
    at java.lang.VMClassLoader.nativeDefineClass (VMClassLoader.java)
    at java.lang.VMClassLoader.defineClass (VMClassLoader.java:94)
    at java.lang.ClassLoader.defineClass (ClassLoader.java:673)
    at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:108)
    at java.net.URLClassLoader.findClass (URLClassLoader.java:926)
    at java.lang.ClassLoader.loadClass (ClassLoader.java:360)
    at java.lang.ClassLoader$1.loadClass (ClassLoader.java:1285)
    at java.lang.ClassLoader.loadClass (ClassLoader.java:304)
    at java.lang.VirtualMachine.main (VirtualMachine.java:99)

    I've installed other sable-related packages with no different results. I even installed the jikes java compiler with sable add-ons. That doesn't work either. When trying to compile, I get this:

    % jikes Test.java
    Found 1 system error:

    *** Semantic Error: You need to modify your classpath, sourcepath, bootclasspath, and/or extdirs setup. Jikes could not find package "java.lang" in:
    .
    .

    I'm getting very frustrated trying to install something that should be a simple thing to do these days. Aside from this one (big IMO) issue, the ReadyNAS Duo is a great little machine. But if I can't get Java to run on it, I'm not going to be happy... :(
  • hi,

    i have installed sablevm - no problems. How can I test my installation? Also any of you know what version of java is supported by sablevm? I would like to run tomcat on it.

    thx
  • Hey
    I can say so much. That it is possible for me to develop java code to my readynas duo and run it on the readynas.

    I used SableVM

    He is what i did:

    On the NAS Server
    Install with: sudo apt-get install sablevm for instance version 1.11.3

    On the developer machine (Ubuntu 11.04.
    Add jikes (IBM Java Compiler)
    add deb http://ftp.de.debian.org/debian lenny main to the file:
    / etc / apt / sources.list
    run: apt-get update
    run: sudo apt-get install jikes

    Download Sablevm version 1.11.3
    Make sure that gcc, libtool, autoconf and automake installed.
    run:. / configure
    Run: make
    run sudo make install (ignore the fail, it should now be added to the path)

    Now you can compile Java code with the command:
    javac-sablevm Test.java

    Just point to the java file that holds the main method, then javac-sablevm when find the other files by itself.
    After the command there should now be som class files.

    Theese files should be moved to the readynas and run with the command: "sablevm Test" (if the files name are Test.class)

    With me this worked and the class files function as planed.

NETGEAR Academy

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

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More