[kaffe] Eclipse 3.0M4 on kaffe
Mark Wielaard
mark@klomp.org
Thu Oct 30 13:39:01 2003
--=-n+DbmPsTXqRgVFxZlHbs
Content-Type: multipart/mixed; boundary="=-ixOWYoWNrMsbhrEyyduz"
--=-ixOWYoWNrMsbhrEyyduz
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
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=3Dunix-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=3D1.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=3D/usr/local/kaffe/bin:$PATH LD_LIBRARY_PATH=3D/usr/local/kaffe/lib:/t=
mp/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
--=-ixOWYoWNrMsbhrEyyduz
Content-Disposition: inline; filename=PrimitiveArrayCritical.patch
Content-Type: text/x-patch; name=PrimitiveArrayCritical.patch; charset=ISO-8859-1
Content-Transfer-Encoding: base64
SW5kZXg6IGluY2x1ZGUvam5pLmgNCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
P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GFyciwgamNoYXIqIGVsZW1zLCBqaW50IG1vZGUpDQogew0K
IAlCRUdJTl9FWENFUFRJT05fSEFORExJTkdfVk9JRCgpOw0KQEAgLTQ0MjUsOCArNDQzNyw4IEBA
DQogCUthZmZlX0dldEphdmFWTSwNCiAJTlVMTCwNCiAJTlVMTCwNCi0JTlVMTCwNCi0JTlVMTCwN
CisJS2FmZmVfR2V0UHJpbWl0aXZlQXJyYXlDcml0aWNhbCwNCisJS2FmZmVfUmVsZWFzZVByaW1p
dGl2ZUFycmF5Q3JpdGljYWwsDQogCU5VTEwsDQogCU5VTEwsDQogCU5VTEwsDQo=
--=-ixOWYoWNrMsbhrEyyduz
Content-Disposition: inline; filename=java
Content-Type: text/x-sh; name=java; charset=ISO-8859-1
Content-Transfer-Encoding: base64
IyEgL2Jpbi9zaA0KIyBQcmV0ZW5kIEthZmZlIGlzIEphdmENCnByZWZpeD0vdXNyL2xvY2FsL2th
ZmZlDQpleGVjX3ByZWZpeD0ke3ByZWZpeH0NCmV4ZWMgJHtleGVjX3ByZWZpeH0vYmluL2thZmZl
IC1teCAyNTZNIC1EamF2YS52bS52ZXJzaW9uPTEuMyAtRHN1bi5ib290LmNsYXNzLnBhdGg9L3Vz
ci9sb2NhbC9rYWZmZS9qcmUvbGliL3J0LmphciAtRG9yZy5lY2xpcHNlLmNvcmUucnVudGltZS5p
Z25vcmVMb2NrRmlsZT10cnVlICR7MSsiJEAifQ0KDQo=
--=-ixOWYoWNrMsbhrEyyduz--
--=-n+DbmPsTXqRgVFxZlHbs
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQA/oYP5xVhZCJWr9QwRAsK9AJ9djut2W9z9dofsKC92dMjJmjOhXwCfX/NG
SmvfNstqaxzzTHU/34+bWB0=
=zDM3
-----END PGP SIGNATURE-----
--=-n+DbmPsTXqRgVFxZlHbs--