[jalimo-info] Exception on n800 finding AWT

Sebastian Mancke s.mancke at tarent.de
Sat Mar 8 09:19:49 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Jeff,

the swing peers are contained in teh optional package classpath-gtk,
so please do apt-get install classpath-gtk on you customers device.

Regards,
  Sebastian

Jeff McHugh schrieb:
> Hi Robert, Sebastian -
> 
> I've got my app working fine on my N800 using Swing; I am trying to
> debug my client's Jalimo installation which for some reason is failing
> with the following exception.
> ( He is of course 200 km away from me so it only makes things more
> difficult - but of course you're both in Germany and it's worked so far
> for us :> )
> Here is the stack trace we get right after starting the app. (by the way
> I using the maven plugin to do a proper install)
> 
>     /Exception in thread "main" java.awt.AWTError: Cannot load AWT
>     toolkit: gnu.java.awt.peer.gtk.GtkToolkit//
>     at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:607)
>     at
>     java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:103)
>     at java.awt.Window.<init>(Window.java:133)
>     at java.awt.Frame.<init>(Frame.java:246)
>     at java.awt.Frame.<init>(Frame.java:234)
>     at
>     javax.swing.SwingUtilities$OwnerFrame.<init>(SwingUtilities.java:1213)
>     at
>     javax.swing.SwingUtilities$OwnerFrame.<init>(SwingUtilities.java:1213)
>     at javax.swing.SwingUtilities.getOwnerFrame(SwingUtilities.java:1163)
>     at javax.swing.JWindow.<init>(JWindow.java:96)
>     at
>     mbdatasys.isydevice.widgets.swing.DeviceScreen.<init>(DeviceScreen.java:80)
>     at mbdatasys.isydevice.app.MainGUI.run(MainGUI.java:55)
>     at mbdatasys.isydevice.app.MainGUI.main(MainGUI.java:103)
>     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:662)
>     at gnu.java.awt.peer.gtk.GtkToolkit.<clinit>(GtkToolkit.java:173)
>     at java.lang.VMClass.forName(Native Method)
>     at java.lang.Class.forName(Class.java:233)
>     at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:583)/
> 
> 
> 
> 
> Upon comparing my N800 to his N800, I see that I do have the file:
> 
>     /*/usr/lib/classpath/libgtkpeer.so*/
> 
> _But he does not._
> 
> 
> 
> We both have the exact same
> 
>     Nokia-N800-51-3:~# dpkg --status classpath-common | grep Version
>     *Version: 0.96.1-r2*
>     Nokia-N800-51-3:~# dpkg --status cacao | grep Version
>     *Version: 0.98+hg20071001-r6*
>     Nokia-N800-51-3:~# dpkg --status libswt3.4-gtk-hildon-java | grep
>     Version
>     *Version: 3.3+3.4M5-r0*
> 
> 
> 
> 
> Since the Swing app works fine on mu device, I'm guessing I somehow have
> one extra package that he doesn't.
> Can you guess as to what it may be?
> Can you tell me what would be the best way to verify the full set of
> packages he need in order for Swing to work?
> 
> 
> I really appreciate any insight or ideas.
> 
> thanks a lot
> /jeff
> 
> 
> 
> 
> 
> 
> 
> Jeff McHugh wrote:
>> Thanks Sebastian - I'll document everything I find. For the most part
>> things a pretty good.
>>
>> /jeff
>>
>> Jeff McHugh
>> Segue Development LLC
>> 20 South Chestnut Street
>> Beacon NY 12508
>> 845.765.0415 (office)
>> 646.258.7828 (mobile)
>> www.seguedevelopment.com
>>
>>
>> Sebastian Mancke wrote:
> Hi Jeff,
> 
> as said below, we did not tested much of the Swing support and there are
> much issues with it. If you plan to use Swing anyway, please first find
> out what problems exist in Swing and document all those issues as bugs
> in our bugzilla. If only some issues are in the way of your application,
>  we may have the time to help you, but I can't promise this.
> 
> Regards,
>   Sebastian
> 
> Jeff McHugh schrieb:
>   
>>>>> Hi Guys -
>>>>>
>>>>> I am currently working on porting my swing-app over to the N800.
>>>>>
>>>>> What is the preferred way top-level Component:
>>>>>  JFrame or JWindow?
>>>>>     
> In general you sould prefer JFrame as default.
>   
>>>>> It seems the full-screen functionality only works with JWindow, should
>>>>> my application use an instance of JWindow is the root container?
>>>>>
>>>>>
>>>>> Sebastian Mancke wrote:
>>>>> Hi Chuck,
>>>>>
>>>>> swing works basically on maemo4. You need the package 'classpath-gtk'
>>>>> like on OpenMoko, of course. The following things have to be done,
>>>>> before we officially would say, that it works ;-)
>>>>>
>>>>> - Support for the virtual keyboard. Maemo uses the a special
>>>>> InputFramework [0] instead raising keyboard events with the virtual
>>>>> keyboard. (The n810 hardware keyboard works) We have started an
>>>>> implementation [1] for this issue, which is waiting to be continued.
>>>>>
>>>>> - The menu bar should be contained in the window title as usual under
>>>>> maemo.
>>>>>
>>>>> - A proper look and feel is needed (adequate font and widget sizes at a
>>>>> minimum)
>>>>>
>>>>> - Test of some applications, to see, what additional problems exist as
>>>>> well as get a feeling about the performance on larger Swing applications.
>>>>>
>>>>> Any help on the maemo swing support is highly desired, because we have
>>>>> it on our wish list for a long time, but could not find the time to
>>>>> complete it.
>>>>>
>>>>> Regards,
>>>>>   Sebastian
>>>>>
>>>>> [0] http://live.gnome.org/Hildon/HildonInputMethod
>>>>> [1]
>>>>> https://evolvis.org/plugins/scmsvn/viewcvs.php/trunk/maemo/hildon_swing_input/?root=jalimo
>>>>>
>>>>>
>>>>> Chuck Harris schrieb:
>>>>>   
>>>>>     
>>>>>>>> Howdy!
>>>>>>>>
>>>>>>>> The Jalimo project looks very interesting. However, I am more interested 
>>>>>>>> in developing using Swing than SWT. Is there someone working on making 
>>>>>>>> the OpenMoko classpath-gtk package work on Maemo?
>>>>>>>>
>>>>>>>> If not, I would be happy to work on it myself. Does anyone have any 
>>>>>>>> pointers from making it work on OpenMoko that may be useful to me?
>>>>>>>>
>>>>>>>> Thank you in advance for any information on this.
>>>>>>>>
>>>>>>>>     Thanks,
>>>>>>>>     Chuck Harris
>>>>>>>> _______________________________________________
>>>>>>>> jalimo-info mailing list
>>>>>>>> jalimo-info at lists.evolvis.org
>>>>>>>> http://lists.evolvis.org/cgi-bin/mailman/listinfo/jalimo-info
>>>>>>>>     
>>>>>>>>           
> _______________________________________________
> jalimo-info mailing list
> jalimo-info at lists.evolvis.org
> http://lists.evolvis.org/cgi-bin/mailman/listinfo/jalimo-info
>   
>>>>>>       
> 
>   
>>>>> ------------------------------------------------------------------------
>>>>>     
> 
>   
>>>>> _______________________________________________
>>>>> jalimo-info mailing list
>>>>> jalimo-info at lists.evolvis.org
>>>>> http://lists.evolvis.org/cgi-bin/mailman/listinfo/jalimo-info
>>>>>     
> 
>>>

>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> jalimo-info mailing list
>> jalimo-info at lists.evolvis.org
>> http://lists.evolvis.org/cgi-bin/mailman/listinfo/jalimo-info
>>   

- --
tarent Gesellschaft für Softwareentwicklung und IT-Beratung mbH

Heilsbachstr. 24, 53123 Bonn    | Poststr. 4-5, 10178 Berlin
fon: +49(228) / 52675-0         | fon: +49(30) / 27594853
fax: +49(228) / 52675-25        | fax: +49(30) / 78709617
durchwahl: +49(228) / 52675-17  | mobil: +49(171) / 7673249

Geschäftsführer:
Boris Esser, Elmar Geese, Thomas Müller-Ackermann
HRB AG Bonn 5168
Ust-ID: DE122264941
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH0kwksMJ2Yk81wE0RAjbCAKDhA7XbHahqyUOM/CNIsu5o20CBqQCgz9Ar
hQMO+dQ9/CjlktPoJtu7pAg=
=xLRR
-----END PGP SIGNATURE-----


More information about the jalimo-info mailing list