[kaffe] Eclipse 3.0M4 on kaffe

Mark Wielaard mark at klomp.org
Thu Oct 30 13:39:01 PST 2003


Hi,

The following quick whacky hacks make Eclipse 3.0M4 work on my Debian
GNU/Linux machine with gtk+ 2.2 installed.

You will need eclipse-SDK-3.0M4-linux-gtk.zip from:
http://download2.eclipse.org/downloads/drops/S-3.0M4-200310101454/

First replace java/net/URLen/decode.java with the versions from GNU
Classpath.

The apply the attached quick hack that implements provides two (fake)
implementations for Get/ReleasePrimitiveArrayCritical JNI functions.

Create a kaffe build which is configured with
--with-threads=unix-pthreads

After installation replace the kaffe/bin/java and kaffe/jre/bin/java
scripts with the attached versions.
(Eclipse needs some extra memory, doesn't like the default
java.vm.version=1.3 and uses some strange system property to get at the
bootstrap classes, finally our FileLock isn't implemented yet and throws
an Error but Eclipse looks at the last system property to know whether
or not to use it.)

The unzip the eclipse build you downloaded above.
And start it with something like:
PATH=/usr/local/kaffe/bin:$PATH LD_LIBRARY_PATH=/usr/local/kaffe/lib:/tmp/eclipse/plugins/org.eclipse.swt.gtk_3.0.0/os/linux/x86 ./eclipse

Lots of things work and with the File->New Project and File->New Class
you get some wizard which should guide you through a simple "Hello
World" type program which you should be able to run with the menu
Run->Run As->Java Application to give you something like:
http://www.klomp.org/mark/classpath/Screenshot-Kaffe-Eclipse3.png

When you are finished playing look into workspace/.metadata/.log to see
what breaks. And then fix it :)

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PrimitiveArrayCritical.patch
Type: text/x-patch
Size: 1928 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20031030/4d2c7759/attachment-0007.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: java
Type: text/x-sh
Size: 260 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20031030/4d2c7759/attachment-0002.sh 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://kaffe.org/pipermail/kaffe/attachments/20031030/4d2c7759/attachment-0002.pgp 


More information about the kaffe mailing list