View Single Post
Posts: 80 | Thanked: 114 times | Joined on Dec 2009 @ Belgium
#94
Originally Posted by shep View Post
Thanks for the great work everyone.

I have copied the ejre-1_6_0_10-ea-b39-linux-armv6-vfp-eabi-headless-eval-30_jul_2009.tar.gz file to my N900, then I followed the instructions to extract it.

sudo gainroot
mkdir /home/opt/java
cd /opt/opt
tar xzf /home/user/MyDocs/*.tar.gz

Then I typed
ln -s /home/opt/java/ejre1.6.0_10/bin/java /usr/local/bin/java

I edited my /etc/profile and added the :/usr/local/bin to the export PATH= line.

When I go into XTERM without doing sudo gainroot now and type java I get an error "Java SE Embedded Evaluation Version Initialization Error...try again as root". But, when I sudo gainroot and type java I get the message "/bin/sh: java: not found"

Any ideas?


Also...on the J2ME front, I downloaded the javame_0.1-1_armel.deb file today and tried to install it, but Red Pill Mode is gone from the fireware now! Anyone know how I install a .deb file without Red Pill mode?


Thanks,

Shep
Quite logical: you exported the /usr/local/bin/ folder for the default user, but not for the root ...

You could run it as root by typing the full path instead of just 'java'

Another option is to make the default user owner of the ejre directory, then the user has all permissions. You can do this by the command
chown -R user:users /home/opt/java/ejre1.6.0_10

Hope this helps
 

The Following 3 Users Say Thank You to beli For This Useful Post: