maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Java JSR 179 Location API (openlapi) implemented in n900 (https://talk.maemo.org/showthread.php?t=46688)

ideligoz 2010-03-07 06:06

Java JSR 179 Location API (openlapi) implemented in n900
 
1 Attachment(s)
I just finished the openlapi implementation on n900. there is 3 files in the tar archive. Here is my set up of how to run in n900.
openlapi.jar -> put in /opt/java
openlapi-jsr179.jar -> put in /opt/java
libgpsJNI.so -> put in /usr/lib (you need to put in this folder)

if you run the next lines you will have midlets using the location api

CLASSPATH=/opt/java/microemulator-3/microemulator.jar
CLASSPATH=$CLASSPATH:/opt/java/openlapi.jar
CLASSPATH=$CLASSPATH:/opt/java/openlapi-jsr179.jar
export CLASSPATH
java org.microemu.app.Main

I get the trekbuddy (http://www.trekbuddy.net/) working, but unfortunately I couldn't get google maps used the location. I will set up a garage project and upload the source files later. Please check it out and report if it is working for you too.

ideligoz 2010-05-13 19:23

Re: Java JSR 179 Location API (openlapi) implemented in n900
 
I opened a garage project and put the source files there:
https://garage.maemo.org/projects/openlapi/

I don't have much time now, if anybody wants to continue the work I can hep them to setup the environment.

tvogel 2011-03-20 01:04

Re: Java JSR 179 Location API (openlapi) implemented in n900
 
Any news on this? Doesn't work for me with most applets.

backto 2011-06-06 15:23

Re: Java JSR 179 Location API (openlapi) implemented in n900
 
"if you run the next lines you will have midlets using the location api

CLASSPATH=/opt/java/microemulator-3/microemulator.jar
CLASSPATH=$CLASSPATH:/opt/java/openlapi.jar
CLASSPATH=$CLASSPATH:/opt/java/openlapi-jsr179.jar
export CLASSPATH
java org.microemu.app.Main"

Where i can run this lines and how?

Captwheeto 2011-06-06 15:47

Re: Java JSR 179 Location API (openlapi) implemented in n900
 
Quote:

Originally Posted by backto (Post 1023362)
"if you run the next lines you will have midlets using the location api

CLASSPATH=/opt/java/microemulator-3/microemulator.jar
CLASSPATH=$CLASSPATH:/opt/java/openlapi.jar
CLASSPATH=$CLASSPATH:/opt/java/openlapi-jsr179.jar
export CLASSPATH
java org.microemu.app.Main"

Where i can run this lines and how?

Just put them straight into Xterm. Are we shouting?

backto 2011-06-07 15:08

Re: Java JSR 179 Location API (openlapi) implemented in n900
 
Sorry, i forget -Big font like shout))))
Can i put them copy\past or they 5 diferent commands!?
when i put them into *.sh-file i see error (bad varifble nameine 4:CLASSPATH)

Captwheeto 2011-06-07 15:20

Re: Java JSR 179 Location API (openlapi) implemented in n900
 
They're all different lines yeah.

Have you copied it exactly? And chmod +x the .sh file?


All times are GMT. The time now is 01:15.

vBulletin® Version 3.8.8