Ad.

Synology package: Java SE Embedded

02 May 2012 13:37

java

I created Java packages for the Synology NAS systems. These are meant for the YAMJ package I'm working on, but can of course be used by other scripts and programs.

Meanwhile I'm working on a YAMJ package (thanks to a hint from Omertron), but it needs a lot of work still to be done. I'll keep you posted.

Java is currently only available on x86 and ARM systems. The package is not startable but will be available from the command line after installation.
Java will be located at:

/usr/local/java/bin/java

Java SE Embedded is Available for: Marvell Orion mv5281, Marvell Kirkwood mv6281, Marvell Kirkwood mv6282, Intel Atom D410, Intel Atom D510, Intel Atom D525, Intel Atom D2700, Intel Core i3.
Check this page to find out what processor your NAS has.

How?

Just add my package repository http://packages.MissileHugger.com/ to the Package Center in DSM.
Go to "Other Sources" and install Java SE Embedded.
At the moment, the packages are for x86 and ARM only and they are still in béta state.

30 Responses to “Synology package: Java SE Embedded”

  1. individual says:

    For me it doesn’t work (DS712+). I’ve installed Java first, then checked it at /usr/local/java/bin/java (ok, is there!), now I’m starting YAMJ, but I only get a white page and the cursor is showing something is trying to load, yet nothing else is shown.

    • MissileHugger says:

      Just wait a couple of hours (depends on the number of movies). Once YAMJ has finished, it will show it’s output. If you wan’t to run YAMJ from the command line, use the following commands:

      cd /usr/local/YAMJ/
      ./run.sh

      This will show the entire process of YAMJ realtime.

  2. Nate says:

    Hey!
    First off thanks for making some quality packages for the Synology DSM!
    I installed a few of them without incedint but several of them tell me that I need to install the specific Java embed version 1.6.0_32-4, when I already have version 1.6.0_32-009 installed. Will your packages work with this Java version? Is it possible for you to enable these packages to either work with version 1.6.0_32-009 or maybe any Java version that is 1.6.0_32-4 or newer so that I can put your hard work to good use on my DS1812+?

    Thanks for your help!
    Semper Fi
    Nate Miller (Sgt, USMC Retired)

    • MissileHugger says:

      These packages are depending on the Java package from my repository.
      Due to changes in the -4 package, some packages require the specifically version -4 of the Java package. I hope this answers your question.

  3. vishal says:

    Hi – I cannot seem to add your package source to my sources.

    I don’t know whats up here – it says location not found. All others seem to work.

    • MissileHugger says:

      It seems there are some stability issues, please try again later or download manually.
      Manual download:
      - Visit http://packages.missilehugger.com in your browser.
      - Press “toggle info” next to the desired package.
      - Download the spk according to your Synology’s architecture

  4. vishal says:

    ps its on the ds212+ dsm4

  5. Corey Gouker says:

    I’m trying to decide which package is appropriate. Yours or PCLoadLetter’s.

    http://pcloadletter.co.uk/2011/08/23/java-package-for-synology/

    I’m mainly wanting Java to be able to run Subsonic. Synology’s audio station is great and all but not quite as good as Subsonic :).

    http://www.eg-blog.de/?cat=8

    I’ve tried both Java packages but neither seemed to work directly straight away. At least not with that Subsonic package.

    Would really be nice if this stuff was installable from root with ipkg so that some things could be customized before install.

    Thoughts? :)

  6. patters says:

    The Java package I published at pcloadletter.co.uk is legally compliant with the Oracle licence agreement. The one here isn’t because it redistributes Oracle’s binaries. This is forbidden in the licence.

    This explains why Synology haven’t done an ‘official’ Java package. In making it easy to install like this one, there’s a legality problem, but to stay compliant introduces a difficulty hurdle for newbies (they have to download the file from Oracle which the package uses). Rock and hard place…

    It’s interesting that you put a copyright on this website…

    • MissileHugger says:

      The website is copyrighted, not the packages.
      I create packages in my free time, with no intention of copyright infringement.

      As far as I can see, my package complies with the Java license:

      Redistribution and use in source and binary forms, with or without
      modification, are permitted provided that the following conditions
      are met:

      1. Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.

      2. Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in the
      documentation and/or other materials provided with the distribution.

      3. Neither the name of the copyright holders nor the names of its
      contributors may be used to endorse or promote products derived from
      this software without specific prior written permission.

  7. Chris says:

    Can’t download the april build anymore from Oracle. It says April in the download link but it’s a July build now and doesn’t work with you’re installer.

  8. MarcoH says:

    Thanks, this works perfectly on my DS410j. Not much power in the processor though, but still, java works!

  9. theMikeD says:

    Anything you can think of to get this working on my DS-508 (Freescale mpc8543 PPC)? I’m dying to use FileBot!

  10. Pater says:

    Many thanks, works well on my DS112+ together with Tomcat.

  11. Simon says:

    Ah crap, this doesn’t work with the 210+ because ti has the freescale chip!

  12. Martin says:

    Hello,

    I just installed your package java-88f5281-1.7.0_06-1.spk on my Synology 207+ which should has Marvell Orion mv5281 ARM processor. Installation using DSM Package Management was successful and package Java SE Embedded is “running”. But what I need is run java in console. So I connected to my NAS using Putty and in shell executed
    /usr/local/java/bin/java -version

    with this result:
    -sh: /usr/local/java/bin/java: not found

    The I tried to add bin folder to PATH with no changes. File java should has linux run perrmission:
    -rwxrwxrwx 1 root root 3368 Aug 10 05:11 java

    Is there anyone who can help with this? I want to run Jetty server in my NAS.

    Many thanks to all who can help me solve this issue

  13. HangChoi says:

    Hi MissileHugger,
    I’m the DS209J User, i did try all JAVA SE Embedded SPK that you provide at http://packages.MissileHugger.com/ but all not work, somebody told me that the new version can’t use in my NAS, so is there any old version provide? I really need JAVA in my NAS.
    Please help me!!

  14. chevota says:

    Hello MissileHugger,
    I have java up and running and craftbukkit running but the plugins will not load do to the java ver. Both yours or pcloaders java install.
    DS712+ many thanks minecraft / bukkit 1.5.1
    The game runs great but I would love to have my plugins working.

  15. jcd_29 says:

    Hello,
    pretty useful packages for java developers ! However, I’ve got this error trying to execute a class file (depending on xuggler jar) on DiskStation console :

    Exception in thread “main” java.lang.UnsatisfiedLinkError: no xuggle in java.library.path

    It works well on a macosx/eclipse with java 1.6 SE.
    Any clues to solve this ?
    Thanks in advance,

    Jean

  16. mj says:

    Salut Paters,

    Merci pour ce package, c’est géant !!
    J’ai une question, j’ai télécharger l’application jdownloader sur mon syno et je voulais savoir comment l’exécuter. J’ai bien télécharger la version avec le jar et j’aimerai maintenant savoir comment l’exécuter.

    Merci :)

    • Claudia says:

      Because I’ve always loved writing, and writing historical romances
      let me stay home while my son was growing up.
      All of these different types of groups exist today,
      although the traditional power of Kings were greatly weakened during colonial
      rule. Each one is easily distinguishable from the other from face
      to clothing.

  17. [...] Java: If available for your Diskstation, use the Java Manager package. Otherwise, you could use a third party Java package (that’s what I had to [...]

  18. acn says:

    I’m trying to get filebot on my DS412+ where I already have Java 6 installaed through Synology’s “Java Manager”, but the MissileHugger package keeps asking for Java SE Embedded install.

    Any way of circumventing this?

    • acn says:

      I’m guessing it’s looking for java here: ‘/usr/local/java/bin/java’ even though it’s not available in that path…?

      “Java SE Embedded for Synology NAS. The Java binary will be available at: ‘/usr/local/java/bin/java’.” from http://packages.missilehugger.com/

  19. BartV says:

    Hello,

    I was thrilled when I found your package of Java for Marvell Orion mv5281 ARM (which should be inside my DS207+), as it would enable me to install a web server for my MySQL database as described here : http://www.basic4ppc.com/android/forum/threads/remote-database-connector-connect-to-any-remote-db.31540/

    After installing the package, I liked to test the installation by telnetting into the server and verifying the good behaviour of java. Bugger!

    DiskStation0> cd /volume1/@appstore/java/bin/
    DiskStation0> dir
    drwxrwxrwx 2 root root 4096 Jan 29 23:52 .
    drwxr-xr-x 4 root root 4096 Jan 29 23:53 ..
    -rwxrwxrwx 1 root root 3368 Apr 4 2013 java
    -rwxrwxrwx 1 root root 3468 Apr 4 2013 keytool
    DiskStation0> ./java -version
    -sh: ./java: not found

    Several people seem to have the problem, but no solution…?

    Thanks for your answer.

  20. Andrew says:

    Is it possible to get older packages of Java SE Embedded. I upgraded to 1.8 and it broke filebot…

  21. Mitzi says:

    You share interesting things here. I think that your blog can go viral
    easily, but you must give it initial boost and i know how to do it, just type in google for – wcnu
    traffic increase

Leave a Reply