Active Topics

 


Reply
Thread Tools
SubCore's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#31
Originally Posted by Xizor View Post
Even if I go directly to /home/opt/java/ejre1.6.0_10/bin and type "java" I get "/bin.sh: java: not found"
when you're in /home/opt/java/ejre1.6.0_10/bin, did you type just "java" or "./java" ? note the dot and the slash at the beginning.
unlike windows, linux shells usually don't have the current path in the PATH variable.
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg
 
Posts: 42 | Thanked: 2 times | Joined on Dec 2009
#32
Originally Posted by SubCore View Post
when you're in /home/opt/java/ejre1.6.0_10/bin, did you type just "java" or "./java" ? note the dot and the slash at the beginning.
unlike windows, linux shells usually don't have the current path in the PATH variable.
If I'm in /home/opt/java/ejre1.6.0_10/bin and type "./java" I get "permission denied" ? (And this happens as root )

Originally Posted by Dak View Post
I think you also have to kill and restart your xterm so the new profile path gets refreshed...you can test this by just typing "ja" then hitting tab...it should autocomplete to "java"
The autocomplete works with java but only without "sudo gainroot".

There's got to be some silly mistake I've made, but I just can't seem to figure it out...
 
Posts: 20 | Thanked: 4 times | Joined on Nov 2009 @ The Netherlands
#33
can someone try nav4all? this might enable turn-by-turn navigation on the n900
 
Posts: 151 | Thanked: 72 times | Joined on Sep 2009
#34
Sorry I thought NinjaVideo.net had a java applet that you need to launch first in order to watch the streaming content on there????
 
Posts: 124 | Thanked: 213 times | Joined on Dec 2009
#35
@Xizor - Did you download the archive onto a Windows PC, expand it, then copy it across? If so, you may have lost permissions...

Type "ls -al /home/opt/java/ejre1.6.0_10/bin" into an xterm

On the left-hand side, you should see a column of permission data ("r", "w", "d" etc) ... the files should all have "-rwxr-xr-x" for their permissions.
 

The Following User Says Thank You to Dak For This Useful Post:
SubCore's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#36
Originally Posted by Xizor View Post
If I'm in /home/opt/java/ejre1.6.0_10/bin and type "./java" I get "permission denied" ? (And this happens as root )
ah, of course.

because you extracted it under windows and copied it to MyDocs first, the executable flags were lost. MyDocs is a vfat partition and doesn't support executable flags.

my suggestion to just copy the extracted content over wasn't so good after all.

you better delete the folder ejre1.6.0_10 (run "rm -rf ejre1.6.0_10" as root when in the directory /home/opt/java) and do this instead:

copy the .tar.gz (or .tgz, haven't d/l it yet) on the n900, then
Code:
sudo gainroot
cd /home/opt/java
tar -xzvf /home/user/MyDocs/<filename>.tar.gz
now every file should have their proper flags and permissions

the changes in /etc/profile and the symlink won't be affected if you just delete the folder btw, so you don't have to do that again
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg
 

The Following 2 Users Say Thank You to SubCore For This Useful Post:
Posts: 42 | Thanked: 2 times | Joined on Dec 2009
#37
Thank you both SubCore and Dak for the help! Now it's working.

Although I don't seem to be able to run even the simplest Swing- app => The ever annoying HeadlessException appears.

Dak, could you post the sample Java code for the Java Swing app you used for testing this rte?
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#38
Thanks for the instructions, Dak!

Just a note, the N900 has tar with gzip on it. So you can "tar xzvf" on your device without a problem. It avoids the permissions problems of the other methods.

Also /home/user/opt is also just /opt so you can shorten your path a bit.

Is there a specific reason why you choose /usr/local/bin for your symlink, instead of /usr/bin? Wouldn't it be easier to just add it to /usr/bin?
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following 2 Users Say Thank You to qole For This Useful Post:
Posts: 124 | Thanked: 213 times | Joined on Dec 2009
#39
I tend to leave /usr/bin for "system" kinda stuff, and put all my personal meddling into /usr/local/bin

It's just the way I like to keep my hackery separate, that's all.
 

The Following 2 Users Say Thank You to Dak For This Useful Post:
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#40
Wow.

The headful Java works amazingly well.

I tried the Java 2D demo, and it worked at a reasonable speed! Not as fast as my desktop, but I didn't say, "oh man, this is slow" or anything...

If Sun will let N900 owners use this without trial limitations, then we really do have a viable Java SE for the N900.

Now to try Opera Mini via MicroEmulator

(EDIT: Using this method)
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!

Last edited by qole; 2009-12-17 at 21:32.
 

The Following User Says Thank You to qole For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 04:14.