Active Topics

 


Reply
Thread Tools
Posts: 3 | Thanked: 0 times | Joined on Jan 2010
#121
Hello,

the microemulator does not work. The error message is:

java -jar /home/opt/microemulator-2.0.4/microemulator.jar
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:60 7)
at javax.swing.plaf.basic.BasicLookAndFeel.initialize (BasicLookAndFeel.java:1720)
at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:912)
at javax.swing.UIManager.<clinit>(UIManager.java:245)
at org.microemu.app.Main.main(Main.java:1024)
Caused by: java.lang.UnsatisfiedLinkError: Native library `gtkpeer' not found (as file `libgtkpeer.so') in gnu.classpath.boot.library.path and java.library.path
at java.lang.Runtime.loadLibrary(Runtime.java:763)
at java.lang.System.loadLibrary(System.java:670)
at gnu.java.awt.peer.gtk.GtkToolkit.<clinit>(GtkToolk it.java:177)
at java.lang.VMClass.forName(Native Method)
at java.lang.Class.forName(Class.java:233)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:58 3)
...4 more
Nokia-N900-42-11:~#

Which Version of the java jre is the right one? The hard floating or the soft floating? Who can please help?

Greetings
 
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#122
Originally Posted by Ulrik View Post
Is it possible to install Java on the N900 without the 90-day trial period?
You could e.g. use the openjdk provided on the following website:
http://www.camswl.com/openjdk
Someone else posted that link already earlier in the thread but i am kinda weak in remembering names.

It works quite well for me here.
 

The Following User Says Thank You to Wonko For This Useful Post:
Posts: 196 | Thanked: 54 times | Joined on Jan 2010 @ UK
#123
Using

ejre-1_6_0_10-ea-b39-linux-armv6-vfp-eabi-headless-eval-30_jul_2009.tar.gz

microemulator-2.0.4

Runing the command
Nokia-N900-51-1:/home/opt/java/microemulator-2.0.4# java -jar microemulator.jar

I get error below

Exception in thread "main" java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(Graphic sEnvironment.java:159)
at java.awt.Window.<init>(Window.java:414)
at java.awt.Frame.<init>(Frame.java:403)
at java.awt.Frame.<init>(Frame.java:368)
at javax.swing.JFrame.<init>(JFrame.java:163)
at org.microemu.app.Main.<init>(Main.java:772)
at org.microemu.app.Main.<init>(Main.java:769)
at org.microemu.app.Main.main(Main.java:1029)

Any suggestions?
 
Posts: 196 | Thanked: 54 times | Joined on Jan 2010 @ UK
#124
OK found problem was sing headless jre.

Now trying to get my traffic tv app to run, is there any way of changing the font size?
 
Posts: 309 | Thanked: 456 times | Joined on Jan 2010
#125
Originally Posted by qole View Post
Wow.

The headful Java works amazingly well.

I tried the Java 2D demo, and it worked at a reasonable speed! Not as fast as my desktop, but I didn't say, "oh man, this is slow" or anything...

If Sun will let N900 owners use this without trial limitations, then we really do have a viable Java SE for the N900.

Now to try Opera Mini via MicroEmulator

(EDIT: Using this method)

Managed to get this running too - running OpenJDK and MIcroEmu. Created a Menu link which launches MicroEmu running Opera Mini 4.2, works as fast as I'd expect it from a J2ME comaptible phone.

I'm going to make an easier guide to follow for other people to implement. Only thing left would be to create a .deb file to automate the install.
 

The Following 2 Users Say Thank You to [DarkGUNMAN] For This Useful Post:
Posts: 8 | Thanked: 2 times | Joined on Jan 2010 @ Brighton, UK
#126
Originally Posted by Ulrik View Post
Is it possible to install Java on the N900 without the 90-day trial period?
No - but it's fairly easy to get around the 90-day trial period. Not sure of the legality of it, so not going to tell you exactly how Have a look for any hidden files in the JRE installation, though...
 
Posts: 309 | Thanked: 456 times | Joined on Jan 2010
#127
Given MicroEmu and Opera Mini 4.2 on OpenJDK a good test this weekend using only a 2G connection. The experience is comparable to MicroB if you leave the screen effects enabled and navigate as you usually would. Though the zooming features aren't there it does come in handy when WiFi and 3G are not available.. Only thing about it is the font used by MicroEmu, I'd like to try and change it but I don't know where to edit this.

I did try using Opera Mini 5 beta, but this ran more sluggish..
Next test is to use J2SE as the Java base and see if it makes any difference.

In the main this would run better if J2ME was supported natively or through PhoneME, but this is the best work around so far.
----------

Back on topic it looks like OpenJDK is running fine. Assuming that Nokia won't provide native Java support at a later date, this should be made available as an install from the repository.
 
Posts: 19 | Thanked: 28 times | Joined on Feb 2010
#128
Hi all,

I'm a person behind the MicroEmu. I've been watching that forum from time to time. I've noticed there is significant interest in running Java ME applications on Maemo platform using MicroEmu.

I'm eager to help in making MicroEmu better for Maemo. What in your opinion is the most important to do?
 

The Following 14 Users Say Thank You to barteo For This Useful Post:
Posts: 293 | Thanked: 76 times | Joined on Jan 2008 @ Fremantle, W. Australia
#129
Originally Posted by barteo View Post
What in your opinion is the most important to do?
maps are lacking on Maemo, so the java version of google maps would be nice. How much is needed to get that working?
 
Posts: 196 | Thanked: 54 times | Joined on Jan 2010 @ UK
#130
I have tried using it to run TrafficTv, I find that the font size is a little small.

if I can get that and maps working I could sell my n97!
 
Reply


 
Forum Jump


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