Post Reply 
OpenWRT or router install
05-01-2015, 21:01
Post: #17
RE: OpenWRT or router install
(05-01-2015 19:27)alexinc Wrote:  ok, i'd like to test with embedded java again and would like to post my steps. maybe my mistake is somewhere in between?

i'm referring on this guide (http://nas-tweaks.net/419/installation-o...-fun_plug/), guess my biggest problem is setting the path for/in openwrt...

1. i'm downloading ejre-7u71-fcs-b14-linux-arm-sflt-headless-26_sep_2014.tar.gz from http://www.oracle.com/technetwork/java/e...index.html
2. mkdir /usr/share/java
3. cp ejre-7u71-fcs-b14-linux-arm-sflt-headless-26_sep_2014.tar.gz /usr/share/java
4. cd /usr/share/java
5. tar xzvf ejre-7u71-fcs-b14-linux-arm-sflt-headless-26_sep_2014.tar.gz
5. ln -s ejre1.7.0_71 jre
6. echo "export PATH=/usr/share/java/jre/bin:\$PATH" >> /etc/profile
7. reboot

root@OpenWrt:/# java -version
/bin/ash: java: not found

could adding the PATH to its right position solve all my troubles? Smile

What happens if you type:

/usr/share/java/jre/bin/java -version

If this works, the problem is with your PATH setting. You can check this by typing:

echo $PATH
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: OpenWRT or router install - simoncn - 05-01-2015 21:01

Forum Jump:


User(s) browsing this thread: 1 Guest(s)