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)

gerdich 2011-01-17 14:21

Re: JAVA on the N900 is possible!
 
And also the keyboard problem is solved!

There is a nice keyboard layout application from qole!

I've only two chose US-layout and all directional buttons work!!

Everything works!

LagunaCid 2011-01-18 05:43

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by gerdich (Post 899346)
The microemulator 3.0.0 is really nice!!!

It works with google maps full screen!

But there is a little thing:
My keyboard.
The regional settings are not respected.
The up and down buttons don't work, only left and right.

With an external bluetooth keyboard everything works well.

Is there a chance to change that behaviour?

I tried GoogleMaps and it froze in the loading screen, which jar did you use, and are you using Oracle's Java or the Open one?

debernardis 2011-01-18 07:12

Re: JAVA on the N900 is possible!
 
Bumping here my post #147:
there's an old edition of the shazam id program which you can find in forums (I can't swear it's legally allright). It's called ylld.jar or yyld.jar (someone's typo).
It works well on my symbian phone and could be an excellent addition to our n900 which hasn't been taken in consideration by the shazam developers.

Well, when I throw it at the latest microemulator (on my ubuntu box), it outputs some errors. I haven't the expertise to debug the thing, but maybe someone here could try and make us happy with a shazam app.

Here's the error log:
Code:

ubuntu@ubuntu:~/Desktop/microemulator-3.0.0-SNAPSHOT$ java -jar microemulator.jar
openJar [file:///home/ubuntu/Desktop/microemulator-3.0.0-SNAPSHOT/yyld.jar]
          org.microemu.app.Common.loadJar(Common.java:559)
openJar [file:///home/ubuntu/Desktop/microemulator-3.0.0-SNAPSHOT/yyld.jar]
          org.microemu.app.Common.loadJar(Common.java:559)
error Message: Error starting MIDlet: Unable to create MIDlet, org.microemu.app.classloader.MIDletClassLoader$LoadClassByParentException: javax.microedition.media.PlayerListener java.lang.NoClassDefFoundError: javax/microedition/media/PlayerListener
          org.microemu.app.Common.loadMidlet(Common.java:425)
java.lang.NoClassDefFoundError: javax/microedition/media/PlayerListener
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:480)
        at org.microemu.app.classloader.MIDletClassLoader.findClass(MIDletClassLoader.java:430)
        at org.microemu.app.classloader.MIDletClassLoader.loadClass(MIDletClassLoader.java:201)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        at motorola.motoid.MotoID.<init>(Unknown Source)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at java.lang.Class.newInstance0(Class.java:372)
        at java.lang.Class.newInstance(Class.java:325)
        at org.microemu.app.Common.loadMidlet(Common.java:418)
        at org.microemu.app.Common.initMIDlet(Common.java:1051)
        at org.microemu.app.launcher.Launcher.commandAction(Launcher.java:121)
        at javax.microedition.lcdui.Display$DisplayAccessor$1.run(Display.java:209)
        at org.microemu.device.ui.EventDispatcher$RunnableEvent.run(EventDispatcher.java:246)
        at org.microemu.device.ui.EventDispatcher.post(EventDispatcher.java:164)
        at org.microemu.device.ui.EventDispatcher.run(EventDispatcher.java:99)
        at java.lang.Thread.run(Thread.java:636)
Caused by: org.microemu.app.classloader.MIDletClassLoader$LoadClassByParentException: javax.microedition.media.PlayerListener
        at org.microemu.app.classloader.MIDletClassLoader.findClass(MIDletClassLoader.java:342)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at org.microemu.app.classloader.MIDletClassLoader.loadClass(MIDletClassLoader.java:213)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        ... 21 more


barteo 2011-01-18 07:20

Re: JAVA on the N900 is possible!
 
You should modify the command line a bit:
java -cp microemulator.jar:lib/microemu-jsr-135.jar org.microemu.app.Main

gerdich 2011-01-18 11:00

Re: JAVA on the N900 is possible!
 
@LagunaCid

I took:
- Java from the Sun (Oracle) Website (headful)
- Microemulator from the website (3.0.x.x)
- Layout applet from qole
- gmaps-232-m2_ts_L1.jar from this thread

On satellite view I can even see my house.
On some spots there is streetview.

(In fact: My standard Java installation is openJDK. But I've installed Sun Java only for the Microemulator. I've modified the startup file of microemulator to use the binaries of SUN. I gave the full path of the binaries of SUN.)

lq_sunshine 2011-01-18 19:23

Re: JAVA on the N900 is possible!
 
i have one question

i have installed the Frostwire p2p client. http://talk.maemo.org/showthread.php...233#post923233
and wrote a shell script:

Code:

cd  /home/user/MyDocs/frostwire-4.21.2.noarch/
 java -jar FrostWire.jar

it works from terminal,but now i want a desktop shortcut and made a .desktop file to execute the script.
However i get a internel error.

When i delete the line with
Code:

cd  /home/user/MyDocs/frostwire-4.21.2.noarch/
the jar file starts and displays an error because it cant find the needed files.

anybode can help?

[DarkGUNMAN] 2011-01-18 19:49

Re: JAVA on the N900 is possible!
 
Code:

java -jar /home/user/MyDocs/frostwire-4.21.2.noarch/FrostWire.jar

Turkishflavor 2011-01-18 19:59

Re: JAVA on the N900 is possible!
 
http://img5.imagebanana.com/img/37fg...0109191920.png

http://img5.imagebanana.com/img/u4ag...0108163809.png

http://img5.imagebanana.com/img/et3y...0109194544.png

gionni88 2011-01-18 21:52

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by lq_sunshine (Post 923237)
anybode can help?

This is my frostwire.sh
Code:

#!/bin/sh
cd  /opt/frostwire-4.21.2.noarch/
java -jar FrostWire.jar

and frostwire.desktop
Code:

[Desktop Entry]
Type=Application
Name=FrostWire
Exec=/opt/frostwire-4.21.2.noarch/frostwire.sh
Icon=frostwire


lq_sunshine 2011-01-18 21:56

Re: JAVA on the N900 is possible!
 
Quote:

Originally Posted by [DarkGUNMAN] (Post 923255)
Code:

java -jar /home/user/MyDocs/frostwire-4.21.2.noarch/FrostWire.jar

Hi,

i tryed this and the problem is, that the program doesnt find the nessesary files in the program folder


All times are GMT. The time now is 12:14.

vBulletin® Version 3.8.8