WebObjects 4: Using JDK 1.1.8 with WebObjects

This article explains how to use updated versions of Sun's JDK with WebObjects 4. This is an unsupported configuration and users should use these instructions at their own risk. Apple will not guarantee or provide support for this procedure.
To install the JDK 1.1.8 and the JDK 1.2 Collection Classes on Solaris or Windows NT:
JAVA_HOME /usr/local/jdk1.1.8 (or c:/jdk1.1.8 for NT)
JDKDIR $JAVA_HOME
Vendor = sun1.1.8
sun1.1.8 = {
VM = "$JDKDIR/bin/java.exe";
DefaultClasspath =  "$HOME/Library/Java; $NEXT_ROOT/Library/Java; $JDKDIR/lib/classes.zip; $JDKDIR/collections/lib/collections.jar";
DefaultBeanpath =   "$HOME/Library/JavaBeans; $NEXT_ROOT/Local/Library/JavaBeans; $NEXT_ROOT/Library/JavaBeans";
Compiler = "$JDKDIR/bin/javac.exe";
Headers = "$JDKDIR/include $JDKDIR/include/winnt";
Library = "$JDKDIR/lib/javai.lib";
DebugLibrary = "$JDKDIR/lib/javai_g.lib";

On Windows NT, this is all you need to do. On Solaris, you'll need to perform some extra steps: ln -s $JAVA_HOME JDK

Be aware that the java compiler used by make is hardcoded to use JDK 1.1.6. This will not affect most Java projects.

Published Date: Feb 19, 2012