WebObjects 4: Using Jikes With WebObjects on Windows NT

Jikes is an open source Java compiler developed by IBM for quick, compatible Java code compilation. This article describes how to replace the default Java compiler with Jikes in WebObjects 4 on Windows NT. This is an unsupported procedure to be used at your own risk. Apple Computer provides no support or warranty for this process.

For more information or to obtain Jikes, please visit IBM's Jikes web page at:

http://www10.software.ibm.com/developerworks/opensource/jikes/project/

The Easy Way

There are two ways to use Jikes with WebObjects and Project Builder. The first and simplest way is to replace the default Java compiler. Simply:

This should allow you to compile using Jikes. However, since the Jikes error stream is different than the stream ProjectBuilder expects from Sun's javac, the build panel will not display errors and link to source files correctly.

The Hard Way

A better way to integrate Jikes into your environment is to integrate Jikes into Project Builder as an alternate compiler. To do this, you'll need to:

Project Builder should now display "IBM Jikes" as an option in the Project Build Attributes inspector's "compiler" popup. With this method, errors will be more likely to be properly highlighted in the build panel. The jikes.bat file simply runs the jikes compiler with the +E flag, which causes error messages to come out on a single line, allowing ProjectBuilder to pick out the filename and line number correctly in most cases. The jikesSpec.plist file is similar to the javaSpec.plist file, with additions for the different warning and error formats. This file only allows the use of Jikes on Windows NT. For more information on customizing Spec.plist files, see the documentation under $NEXT_ROOT/Developer/Makefiles/Resources/compilers.readme

Disclaimer

Whichever way you use to integrate Jikes, remember that Apple has not tested and will not guarantee or provide support for it; follow these instructions at your own risk.

Published Date: Feb 18, 2012