maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Java question (https://talk.maemo.org/showthread.php?t=44325)

morgon 2010-02-13 01:15

Java question
 
Would someone that has managed to get some java running please try to run cgoban on it (that's a client for a Go-Server).

The jar can be found at files.gokgs.com/javaBin/cgoban.jar.

The application is started via "java -jar cgoban.jar".

If that runs I'll buy a N900 immediately...

Many thanks!

fred123 2010-02-13 01:34

Re: Java question
 
3 Attachment(s)
Using sun embeded java i can get it to run dont really know what to do with it

morgon 2010-02-13 23:25

Re: Java question
 
Holy sh...

That is awesome - thanks a lot!!!

That settles it for me - I am not going to wait for Maemo 6...

Khasis 2011-01-02 14:06

Re: Java question
 
Hi Fred123
i'm a little late, but can you explain me how to do it?
or maybe now there's an even simpler way?

thanks

Megaltariak 2011-01-02 14:41

Re: Java question
 
https://cds.sun.com/is-bin/INTERSHOP...-CDS_Developer

Select Linux (arm)

Then download
"Java SE for Embedded 6 Update 21 (Build 9) ARMv7 Linux - Headful, EABI, Hard Float (VFP), Little-Endian"

Extract it to /opt/

Then make symlinks:
In X Terminal, as root:

ln -s /opt/ejre1.6.0_21/bin/* /usr/bin/

You can start jar files from your N900, as user (unless if the java application require root rights, which is rare):

java -jar jarfile.jar

Khasis 2011-01-02 15:47

Re: Java question
 
Thanks
i did what you say
but terminal is saying : "unable to access jarfile cgoban.jar"
where do i have to put the .jar?
thank you

Megaltariak 2011-01-02 16:12

Re: Java question
 
As user, the default working directory is /home/user. The usb internal storage is at /home/user/MyDocs/, the memory card is at /media/mmc1/
For example, if you install it in the usb mass storage, tou will need to type
java -jar "MyDocs/The path where you installed it/cgoban.jar"

Khasis 2011-01-02 20:20

Re: Java question
 
works perfectly
thanks so much

ezmendriz 2011-01-02 20:23

Re: Java question
 
Hi, I am trying to run a java application. It starts but it cant find a library libpthread. Does anyone know which package contains it?

Thanks in advance,

Ezmendriz

ezmendriz 2011-01-04 11:54

Re: Java question
 
hello anyone, I try to search but cant find the informatiion.


All times are GMT. The time now is 11:10.

vBulletin® Version 3.8.8