Reply
Thread Tools
Posts: 15 | Thanked: 3 times | Joined on Nov 2009
#21
Originally Posted by Xizor View Post
Hi!

Could you clarify this a bit....I'm a total n00b when it comes to Linux.
Yes clarify this a bit more for us linux noobs
 
kevloral's Avatar
Posts: 134 | Thanked: 247 times | Joined on Sep 2009 @ Spain, EU
#22
Originally Posted by Dak View Post
It's only a 90-day evaluation jre, sadly...
But does the JRE really stop working after 90 days? Or is it only the license stating that you shouldn't use it after that time?
 
Posts: 2,014 | Thanked: 1,581 times | Joined on Sep 2009
#23
Originally Posted by kevloral View Post
But does the JRE really stop working after 90 days? Or is it only the license stating that you shouldn't use it after that time?
The Java SE for Embedded 6 releases are intended solely for evaluation purposes and will time out in 90 days. The software is free for development but requires a license and small royalty fee to redistribute as part of an embedded product. Please contact us for more information or to request the latest official release.
Thats what It says - does mention timing out after 90 days.
__________________
Class .. : Power Poster, Potential Coder
Humor .. : [*********] Alignment: Chaotic Evil
Patience : [***-------] Weapon(s): +2 Logic Mace
Agro ... : |*****-----] Relic(s) : G1, N900

 

The Following User Says Thank You to Bratag For This Useful Post:
Posts: 124 | Thanked: 213 times | Joined on Dec 2009
#24
OK n00bz...listen up

The downloaded file is a gzipped tar (.tar.gz) archive. It's just a different kinda zipfile...it uses a different process for storing and compressing data, but conceptually they're similar.

I don't have a utility on my N900 to open these yet, so I downloaded it onto my PC. I run Fedora linux, which automatically fires up an archive manager when I dbl-click the file. There are free Windows utilities to handle these files too (try tucows.com).

When you expand (extract, inflate...whatever) this file, it will create a folder called "ejre1.6.0_10" and neatly store all the java software within.

All you need to do is use the "scp" command (Secure CoPy via SSH) with the "-r" option to recursively copy the folder and all its contents to your N900.

You'll need your N900s IP address - there's a very handy little widget for that (thanks to whoever made it!)

example:

scp -r ejre1.6.0_10 root@my.n900.ip.addr:/home/opt/java

(you'll need to create that java folder on your N900 first - go to xterm, use "sudo gainroot" and then type "mkdir /home/opt/java")

Once you get this far, we'll continue the lesson
 

The Following 9 Users Say Thank You to Dak For This Useful Post:
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#25
I'm not sure you're helping there - most n00bz won't have ssh server installed & configured on their N900!

You'd be better copying the archive straight onto the N900 (connect via USB and choose mass storage mode, copy the file over, then disconnect). Open up an X Terminal, then do:
Code:
sudo gainroot
cd /opt
tar xzf /home/user/MyDocs/*.tar.gz
 

The Following 10 Users Say Thank You to Rob1n For This Useful Post:
SubCore's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#26
Originally Posted by Dak View Post
All you need to do is use the "scp" command (Secure CoPy via SSH) with the "-r" option to recursively copy the folder and all its contents to your N900.
this requires an OpenSSH daemon running on the N900. If you don' know what that means or don't want to install yet another application, you can just copy the ejre folder with the (windows) GUI onto the tablet, and use XTerminal to move it from /home/user/MyDocs/ejre to /opt

the command(s) would look like this:

Code:
sudo gainroot
mkdir /opt/java
cd /home/user/MyDocs
mv ejre1.6.0_10 /opt/java


i'm sorry i forgot that mydocs is of course a vfat and will loose needed executable flags.
the above is wrong, 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
btw, /home/opt and /opt are the same.
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg

Last edited by SubCore; 2009-12-17 at 19:57.
 

The Following 3 Users Say Thank You to SubCore For This Useful Post:
Posts: 313 | Thanked: 86 times | Joined on Oct 2009
#27
thanks... will forward this to the SageTV company...hopefully they can do this for me and others
 
Posts: 42 | Thanked: 2 times | Joined on Dec 2009
#28
Originally Posted by Dak View Post
OK n00bz...listen up

....

Once you get this far, we'll continue the lesson
Ok, I'm ready for the next part of this lesson.
 
Posts: 124 | Thanked: 213 times | Joined on Dec 2009
#29
Next, you'll need to install a link to the main java program, so that when you open an xterm and type "java" it knows what you're talking about.

If you've followed my choice of folder location, the java program is located in /home/opt/java/ejre1.6.0_10/bin/java

Open an xterm and use "sudo gainroot" again.

Then type "ln -s /home/opt/java/ejre1.6.0_10/bin/java /usr/local/bin/java"

This will create a "symlink" (a Symbolic Link....basically a pointer to a file or folder) in /usr/local/bin. You could create it in /usr/bin, but I prefer to keep things separate.

You will also need to alter your /etc/profile file slightly. Open it up (with vi)

vi /etc/profile

...and look at the line beginning with "export PATH="

You need to add ":/usr/local/bin" to the end of the path (inside the quotes).

Now you will be able to download Java SE jarfiles and run them by typing "java -jar somejarfile.jar"

I'm working on registering the ".jar" extension so that you can just dbl-click them to run them....I thought I had it figured out, but it's not working yet.
 

The Following 9 Users Say Thank You to Dak For This Useful Post:
Posts: 42 | Thanked: 2 times | Joined on Dec 2009
#30
Originally Posted by Dak View Post
Next, you'll need to install a link to the main java program, so that when you open an xterm and type "java" it knows what you're talking about.

...

I'm working on registering the ".jar" extension so that you can just dbl-click them to run them....I thought I had it figured out, but it's not working yet.
Hmm, I did as you instructed, but when I open xterm and type "sudo gainroot" followed by "java -jar test.jar" I get:

/bin/sh: java: not found

or did I mess something up.

(when I try "java" without "sudo gainroot" I get "permission denied" but that is to be expected?)

Even if I go directly to /home/opt/java/ejre1.6.0_10/bin and type "java" I get "/bin.sh: java: not found"

Last edited by Xizor; 2009-12-17 at 18:09.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 16:49.