DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2013-05-07 13:34:00

stephengrenfell
New member
Registered: 2013-04-11
Posts: 1

Java on DNS-323 unable to get working..

Hello

I am tring to install java on my DNS-323. 

I have followed the tutorial written by Uli (here http://nas-tweaks.net/419/installation- … ment-27486) - thanks to Uli for all his good work writing this tutorial.

I am running fw 1.10 and have installed fun-plug 0.7

As per the tutorial
- I downloaded the latest jre for “ARMv5 Linux – Headless" and put the file in /mnt/HD_a2 using sftp (filezilla) as root user.
- I then ran the the following commands:

Code:

mkdir -p /ffp/opt/java
cd /ffp/opt/java
tar xvzf /mnt/HD_a2/ejre-7u21-fcs-b11-linux-arm-sflt-headless-04_apr_2013.tar.gz
ln -s ejre1.7.0_21/ jre
echo "export PATH=/ffp/opt/java/jre/bin:\$PATH" >> /ffp/etc/profile.d/java.sh
chmod a+x /ffp/etc/profile.d/java.sh

The file unzipped without errors and the other commands ran without errors.

To check the symbolic "jre" link is working I ran the following commands

Code:

root@DNS-STEPHEN:/ffp/opt/java# dir
ejre1.7.0_21  jre
root@DNS-STEPHEN:/ffp/opt/java# cd jre
root@DNS-STEPHEN:/ffp/opt/java/jre# dir
COPYRIGHT  README  THIRDPARTYLICENSEREADME.txt  bin  lib  release
root@DNS-STEPHEN:/ffp/opt/java/jre# cd ..
root@DNS-STEPHEN:/ffp/opt/java# cd ejre1.7.0_21
root@DNS-STEPHEN:/ffp/opt/java/ejre1.7.0_21# dir
COPYRIGHT  README  THIRDPARTYLICENSEREADME.txt  bin  lib  release
root@DNS-STEPHEN:/ffp/opt/java/ejre1.7.0_21# cd ..
root@DNS-STEPHEN:/ffp/opt/java#

As per the tutorial I logged off and login again using ssh as root user, and then checked to see if Java is working:

Code:

Using username "root".
root@192.168.1.100's password:
Last login: Mon May  6 22:14:54 2013 from future_innovati
root@DNS-STEPHEN:~# java
-sh: /ffp/opt/java/jre/bin/java: No such file or directory
root@DNS-STEPHEN:~# java -version
-sh: /ffp/opt/java/jre/bin/java: No such file or directory
root@DNS-STEPHEN:~#

It seems "java" is not recognised.

java.sh in the /ffp/opt/java/jre/bin/ directory has 755 permissions

Any ideas what might be wrong ?, how do I check if the $path was correctly updated with in the environment variables ?.

Thanks

Offline

 

#2 2013-05-07 16:02:28

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: Java on DNS-323 unable to get working..

The 'File Description' of the Java tarball is

ARMv6/7 Linux - Headless EABI, VFP, SoftFP ABI, Little Endian1

That EABI is your problem. A DNS323 has an OABI kernel. This VM is not gonna run on that.

Offline

 

#3 2013-05-24 06:36:22

atx32
Member
Registered: 2009-01-04
Posts: 20

Re: Java on DNS-323 unable to get working..

I've successfully installed and run Java on a DNS-323 using optware.

Install optware and the JamVM package. It works but is very slow.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB