Today i’ve installed java on my NAS Device (a D-Link DNS-345) what i personally see as a highlight as i can now use software that was not available to me before. Oracle provides a “Java SE Embedded”, which is suitable for NAS devices thanks to its reduced memory footprint. For the following tutorial you need to have fun_plug installed!
Download
Go to the Oracle Page and choose “ARMv5 Linux – Headless”. Now you will be redirected to a survey, where you have to enter Name, Prename, Mail, Organization and Role. Then you will receive the download-Link via E-Mail. Click on this Link and accept the license agreement.
Copy the downloaded file (in my case its name was ejre-7u6-fcs-b24-linux-arm-sflt-headless-10_aug_2012.tar.gz
, but that is subject to change) to the NAS. I’ve copied it to /mnt/HD/HD_a2/, please adapt the following commands if you copy it elsewhere.
Installation
First create a directory:
mkdir -p /ffp/opt/java
Then unpack the archive from before:
cd /ffp/opt/java tar xvzf /mnt/HD/HD_a2/ejre-7u6-fcs-b24-linux-arm-sflt-headless-10_aug_2012.tar.gz
Now create a link to the unpacked directory (“ejre1.7.0_06″):
ln -s ejre1.7.0_06 jre
Now put it permanently into the environment variables:
echo "export PATH=/ffp/opt/java/jre/bin:\$PATH" >> /ffp/etc/profile.d/java.sh chmod a+x /ffp/etc/profile.d/java.sh
Logout and Login into the NAS.
Installation-test
Check if it works:
java -version
This should display something like this:
java version "1.7.0_06" Java(TM) SE Embedded Runtime Environment (build 1.7.0_06-b24, headless) Java HotSpot(TM) Embedded Client VM (build 23.2-b09, mixed mode)
Related posts:
- Tutorials
- Syntax Highlighting with nano – nanorc for java
- Installation of the Conceptronic fun_plug on the Conceptronic CH3HNAS
- Updated Tutorials for the Installation of fun_plug 0.5 on the D-Link DNS-320 Sharecenter Pulse
- store-passwd.sh for the D-Link DNS-320 Sharecenter Pulse
Copyright © 2008-2010 by NAS-Tweaks.net
This feed is for personal, non-commercial use only. The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint: 70090d8c7a4f0c07f78ae29dac36fdbe)