[PATCH + help request] Java applets in Konqueror using purely Free Software
Bernhard Rosenkraenzer
bero at arklinux.org
Mon Jul 4 13:17:18 BST 2005
The gcj Java implementation in gcc 4.0.1 is finally (almost) good enough to
run applets in Konqueror.
The only remaining problem on the gcj side is that frame.setUndecorated(true)
causes an IllegalComponentStateException, which can be worked around in
KJASAppletStub (patch attached).
On the KDE side, admin/acinclude.m4.in still has a problem with gcj's java and
javac being in plain /usr (patch attached; the removal of the check for jni.h
is necessary because gcj keeps its jni.h elsewhere (in /usr/lib/gcc/.....),
and won't break anything else because kde_java_includedir is verified in a
couple of other places as well.
Another problem is that the kjas server relies on com.sun.net.ssl, which isn't
implemented in gcj - but we can use jessie (http://www.nongnu.org/jessie/)
which provides almost the same API -- patch attached as well (doesn't break
com.sun.net.ssl either -- falls back to jessie only if com.sun.net.ssl isn't
there).
A remaining (non-vital) problem I'll need help with:
gcj implements its java stuff using GNU Classpath, which in turn uses GTK for
the AWT widgets. This doesn't break anything, but the GTK widgets look pretty
out of place inside Konqueror, and I'd like to avoid the memory bloat created
by using 2 toolkits at the same time -- anyone else interested in building a
KDE/Qt backend for Classpath? It shouldn't be all that much work because AWT
is a fairly minimalistic API - but some Java knowledge would be useful (I'll
give it a try, but my Java knowledge is limited to "it works a lot like C++
without templates, multiple inheritance and pointers", so....
Contributors welcome!
LLaP
bero
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kde-admin-3.4-gcj.patch
Type: text/x-diff
Size: 1840 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050704/2f79ebcc/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdelibs-3.4.2-gcjapplet.patch
Type: text/x-diff
Size: 1808 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050704/2f79ebcc/attachment-0001.patch>
More information about the kde-core-devel
mailing list