Greetings,
The OpenBSD port of Eclipse 3.1 runs on GNU Classpath 0.20 + JamVM 1.4.2.
Details at: http://druseikis.com/OpenBSD/ports/
The overview how-to is this:
Insert and build these (attached) ports:
jikes-1.22p0 [needed for classpath-0.20 use of -encoding]
jamvm-1.4.2
classpath-0.20
Then install the meta package exodus-0.1 (also attached.) Exodus sets
up a JDK-like file structure with links, provides a new version of
infrastructure/mk/java.ports.mk, and its own devel/exodus/java.ports.mk
similar to devel/jdk/1.*/java.ports.mk
If you have Eclipse already installed, add these soft links to
your /usr/local/lib:
LIBS=/usr/local/lib
ln -s ${LIBS}/libcore_3_1_0.so.2.0 ${LIBS}/libcore_3_1_0.so
ln -s ${LIBS}/libswt-atk-gtk-3138.so.2.0 ${LIBS}/libswt-atk-gtk-3138.so
ln -s ${LIBS}/libswt-awt-gtk-3138.so.2.0 ${LIBS}/libswt-awt-gtk-3138.so
ln -s ${LIBS}/libswt-gtk-3138.so.2.0 ${LIBS}/libswt-gtk-3138.so
ln -s ${LIBS}/libswt-pi-gtk-3138.so.2.0 ${LIBS}/libswt-pi-gtk-3138.so
Then set the customary environment variables and run eclipse:
export JAVA_HOME=/usr/local/exodus
export PATH="$JAVA_HOME/bin:$PATH"
ulimit -n 200
eclipse
Oh, and make sure you have enough memory. Increase the setting for
-Xmx400m (the default is -Xmx256m) in eclipse.ini to avoid the
heartbreak of unexpected or silent resource failures. (JamVM has a
different memory allocation strategy than Sun's JVM and is therefore
less efficient about memory usage since it currently lacks a compacting
gc.)
You can also build and run Ant, Tomcat and junit in OpenBSD's ports
tree. Only Eclipse itself is not fully building at the moment; but a
separate package for it is really not needed as you can set it up
bypassing pkg_add if you don't want to install Sun's JDK.
Regards,
Fred
Attachment:
classpath.tar.gz
Description: Binary data
Attachment:
exodus.tar.gz
Description: Binary data
Attachment:
jamvm.tar.gz
Description: Binary data
Attachment:
jikes.tar.gz
Description: Binary data