Reply
Thread Tools
Posts: 80 | Thanked: 114 times | Joined on Dec 2009 @ Belgium
#111
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.
 
Posts: 86 | Thanked: 10 times | Joined on Nov 2009
#112
yeh I just typed *.jar as an example. I am putting the complete file name there.
 
Posts: 137 | Thanked: 150 times | Joined on Jan 2010
#113
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.
 
Posts: 8 | Thanked: 2 times | Joined on Jan 2010 @ Brighton, UK
#114
Originally Posted by elliotshepherd View Post
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!




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.

Last edited by 2bli2; 2010-01-19 at 00:37.
 
Posts: 9 | Thanked: 0 times | Joined on Jan 2010
#115
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...
 
Posts: 3 | Thanked: 0 times | Joined on Jan 2010
#116
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
 
Posts: 17 | Thanked: 14 times | Joined on Jan 2010
#117
@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.
 

The Following User Says Thank You to wjbaird For This Useful Post:
Posts: 137 | Thanked: 150 times | Joined on Jan 2010
#118
Originally Posted by floweih View Post
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.
 

The Following 3 Users Say Thank You to CormacB For This Useful Post:
Posts: 196 | Thanked: 54 times | Joined on Jan 2010 @ UK
#119
Just downloaded JRE from sun licence says 90 day trial, hope there will be a better solution developed by then.
 
Posts: 42 | Thanked: 11 times | Joined on Nov 2009 @ Denmark
#120
Is it possible to install Java on the N900 without the 90-day trial period?
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 00:34.