View Single Post
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#2
Allright it works!

Just managed to build SWT and run the first example application on my N900.

The short story:
As Java does not run under Scratchbox i built SWT in two steps. The first was to build the native libraries in Scratchbox and the second to build the Java part on the N900 itself.

You can find the patches etc. at the project garage site: https://garage.maemo.org/projects/swt-hildon/

I'll also add another post where i'll explain the details of building SWT later on.

In order to test the whole stuff i used the "SimpleSwtSample" example from http://wiki.evolvis.org/jalimo/index.php/Maemo.
Compile the example as follows (note: i am using the openjdk downloaded from http://www.camswl.com/openjdk):
Code:
CLASSPATH="path_to_swt/swt.jar" /home/user/java/openjdk/camswl/j2sdk-image/bin/javac SimpleSwtSample.java
And run as follows:
Code:
CLASSPATH=.:path_to_swt/swt.jar /home/user/java/openjdk/camswl/j2sdk-image/bin/java -Djava.library.path=path_to_swt/ SimpleSwtSample
I only tested the results with openjdk so far.


Best regards

Wonko

Last edited by Wonko; 2011-04-17 at 18:54.
 

The Following 4 Users Say Thank You to Wonko For This Useful Post: