Can you run java on a NSA310S with entware-ng?

Options

So I was wondering if it was possible to run jdownloader headless on my nas with entware-ng

https://support.jdownloader.org/Knowledgebase/Article/View/install-jdownloader-on-nas-and-embedded-devices/10

There is a armv5 java version for embeded devices

https://www.oracle.com/java/technologies/java-embedded-java-se-downloads.html

And someone is already running java on openwrt

https://github.com/josedelinux/openwrt-jdk

Also @Mijzelf on your repo page there is a subfolder for fw 4.80 in the 310S folder.

I'm on fw 4.75 and did not receive the OTA for fw 4.80. Is there any way of updating this manually?

All Replies

  • Mijzelf
    Mijzelf Posts: 2,635  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Options

    About Java, don't know. Just try it. If the jvm doesn't start, try

    LD_LIBRARY_PATH=/opt/lib jvm
    

    where jvm is the name of the binary, to tell the ld loader to use the Entware-ng libraries rather than the firmware ones.

    About fw 4.80, I don't think it exists. The point is, the firmware package manager looks for packages in {PACKAGE_ROOT}/{NAS_VERSION}/{FIRMWARE_VERSION}/. MetaRepository can override that, but to install it I can only change {PACKAGE_ROOT} with the web_prefix file. So {NAS_VERSION}/{FIRMWARE_VERSION}/ has to exist, and contain all just MetaRepository. So there is actually only one directory (NSA310/4.40, when I'm not mistaken), with symlinks 4.50, 4.70, … to 4.40, and symlinks NSA320, NSA320, … to NSA310. So to let a '325 with firmware 4.80 install MR, I provide a directory 4.80 for all boxes.

  • alxxx
    alxxx Posts: 5
    Friend Collector First Comment
    edited September 2023
    Options

    I suppose I need to install java first. How do I do that? There is no opkg for armv5

  • Mijzelf
    Mijzelf Posts: 2,635  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Options

    'Installing' is no more than putting the files on the right place. Can't see what is inside the tarball, as I need an Oracle account to download it, but I suppose it contains a bin directory, a lib directory and so on. Put the files in /opt/bin, /opt/lib and so on. Maybe some environment variable is needed to make java able to find it's files. It expects them for instance in /share/java, but that becomes /opt/share/java, because /share/java is not writable or volatile. But I suppose there is a readme in the tarball which tells so.

  • alxxx
    alxxx Posts: 5
    Friend Collector First Comment
    edited September 2023
    Options

    Going to try that, thx

Consumer Product Help Center