maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   JAVA on the N900 is possible! (https://talk.maemo.org/showthread.php?t=37405)

beli 2010-01-18 13:19

Re: JAVA on the N900 is possible!
 
You have to launch one file instead of *.jar

"./java -jar foo.jar" with foo the name of the jar file you want to launch.

new_bee 2010-01-18 22:22

Re: JAVA on the N900 is possible!
 
yeh I just typed *.jar as an example. I am putting the complete file name there.

CormacB 2010-01-19 00:08

Re: JAVA on the N900 is possible!
 
Many java applications are not packaged as runnable jar files. You will need to run something like java -cp x.jar:y.jar com.company.program.MainClass

RE Runescape; the java plugin included in the embedded JRE doesn't seem to work with MicroB or Firefox, so there is no way to run applets on a webpage right now and that is how it runs. Possibly it might work out of appletviewer but I doubt it. Also I think Runescape uses OpenGL so there would be code changes required to use OpenGL ES as well as porting work for the JOGL library.

2bli2 2010-01-19 00:12

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by elliotshepherd (Post 455208)
I think perhaps ill get jetty running, and write myself a web app to remote control my phone! (send/receive sms... take a picture... get the gps location... wipe the disk... etc)

Got Jetty up and running myself yesterday (see below! :)) Not tried to do anything with it really though. Absolutely love this phone! :D

http://twitpic.com/show/full/yjssb
http://twitpic.com/show/full/yju8i

By the way, for the people struggling to get java executing after a sudo gainroot, you need to edit the gainroot script in /usr/sbin and add the appropriate PATH.

podgeandrodge 2010-01-24 09:17

Re: JAVA on the N900 is possible!
 
Hi guys, I just spotted this thread and thought someone might know something that could help me..


this is a link to a Jar file (J2ME Eagle Eyes) I used when setting up remote viewing of CCTV on the Nokia N95 - I presume these Jar files won't work on the N900 being a different system altogether?

Thanks for any help.

http://www.lakson.com.sg/cpcam/


But all I really want to do is get the N900 to play the streaming .mov file at my ip address - instead I just get a "mediaplayer" icon which, if i click it, tries to save the .mov file to the harddrive of the N900 instead of playing the live video...

floweih 2010-01-25 15:59

Re: JAVA on the N900 is possible!
 
Hello,

I installed the Sun Java Se for embedded like Dak described. I tried to run the application "Db Railnavigator" (can be downloaded here: http://persoenlicherfahrplan.bahn.de...=railnavigator ) but it did not work. The error-message was:

java -jar /home/user/MyDocs/javaprogramme/dbmidlet.jar
Failed to load Main-Class manifest attribute from
/home/user/MyDocs/javaprogramme/dbmidlet.jar
Nokia-N900-42-11:~#

Please can anybody help?

Greetings Bernd

wjbaird 2010-01-25 16:13

Re: JAVA on the N900 is possible!
 
@floweih

That's a midlet - so you need a J2ME (Java Mobile Edition) environment to run it in.

What is being discussed here is a J2SE (Java Standard Edition) environment.

I'm not sure what the status is on a J2ME environment for the N900.

CormacB 2010-01-25 18:03

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by floweih (Post 493791)
java -jar /home/user/MyDocs/javaprogramme/dbmidlet.jar
Failed to load Main-Class manifest attribute from
/home/user/MyDocs/javaprogramme/dbmidlet.jar
Nokia-N900-42-11:~#

To run a midlet:
1. Install JRE
2. Go to http://www.microemu.org/ and download the zip file
3. Unzip the file
4. Go to folder in terminal and run java -jar microemulator.jar
5. Get out your stylus and used the menu to open dbmidlet.jar

You can also use the devices menu to select the resizable device which uses the screen a bit better. Unfortunately the "scale" option seems to be very slow.
I have peggle working for me, but with no sound.

fred123 2010-01-26 01:59

Re: JAVA on the N900 is possible!
 
Just downloaded JRE from sun licence says 90 day trial, hope there will be a better solution developed by then.

Ulrik 2010-01-26 13:59

Re: JAVA on the N900 is possible!
 
Is it possible to install Java on the N900 without the 90-day trial period?


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

vBulletin® Version 3.8.8