Reply
Thread Tools
Posts: 6 | Thanked: 3 times | Joined on Feb 2010 @ Prague, Czech Republic
#11
Great work, thanks a lot! It works like a charm.

Jan
 

The Following User Says Thank You to JanKrejcarek For This Useful Post:
Posts: 85 | Thanked: 29 times | Joined on Jan 2008
#12
I think I'm going to enjoy writing, compiling *and* running SWT applications onboard. This is really great news for java developers and N900 owners. Thank you for your contributions, Wonko.

BTW, one of my SWT app uses the browser widget.

The error I get is:

Code:
java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3555 or swt-mozilla-gtk in swt.library.path, java.library.path or the jar file
Previously, I exported the following environment variable, because I do have fennec installed.

Code:
MOZILLA_FIVE_HOME=/opt/mozilla
Ulysses.
 
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#13
Its nice to see this is useful

Originally Posted by Ulysses View Post
BTW, one of my SWT app uses the browser widget.

The error I get is:

Code:
java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3555 or swt-mozilla-gtk in swt.library.path, java.library.path or the jar file
Thats right, I didn't build this component yet.
As it turns out building this part of SWT is more complicated.

I started to fiddle about this component the weekend.
So far i got it build and was able to run a very simple test application.
Though the functionality is far from being usable.
E.g. scrolling does not work and links do not work either.
Just the first web page opened is displayed.

If you still want to have a look at the result you can get it at http://user.fh-frankfurt.de/~rc9000/...mental/swt.jar
I tested the whole thing using fennec 1.0.0 from the Mozilla web site.
The whole thing is run as follows:
Code:
MOZILLA_FIVE_HOME=/opt/mozilla/xulrunner-1.9.2.1 java -cp .:swt.jar test.BrowserTest
 

The Following User Says Thank You to Wonko For This Useful Post:
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#14
Alright, the browser works!

I uploaded compiled versions to http://user.fh-frankfurt.de/~rc9000/.../experimental/
The patch can be found at http://user.fh-frankfurt.de/~rc9000/...-mozilla.patch

I'll update the build instructions accordingly on the first page.
 

The Following 2 Users Say Thank You to Wonko For This Useful Post:
Posts: 292 | Thanked: 131 times | Joined on Dec 2009
#15
Are you using that Cambrige version of OpenJDK or did you manage to compile OpenJDK from Debian?
 
Posts: 85 | Thanked: 29 times | Joined on Jan 2008
#16
Congratulations, Wonko, thanks for the good work!

Soeiro, I'm using the Cambridge OpenJDK.
 

The Following User Says Thank You to Ulysses For This Useful Post:
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#17
Originally Posted by soeiro View Post
Are you using that Cambrige version of OpenJDK or did you manage to compile OpenJDK from Debian?
I am also using the "Cambridge OpenJDK".

Last edited by Wonko; 2010-03-31 at 18:43.
 
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#18
I added two more patches and uploaded the results to the experimental directory.
Scrollable Composites now make use of the touch UI for scrolling and Tree and Table are scrollable in all directions.
The patches are found at the usual location.
 

The Following 2 Users Say Thank You to Wonko For This Useful Post:
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#19
Ok,
you can now also grab SWT from the repository.
Currently its only in devel but I think I'll promote it soon.
SWT will be installed in /opt/maemo/usr/share/swt and a symlink will be placed to /usr/share/swt.
Because SWT is a library you have to install it via "apt-get install swt-hildon".
 

The Following 3 Users Say Thank You to Wonko For This Useful Post:
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#20
Originally Posted by Wonko View Post
Because SWT is a library you have to install it via "apt-get install swt-hildon".
Renamed the package to libswt-hildon.
Excuse the inconvenience.
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:46.