WebObjects 5.3: Using Java 1.4 With Mac OS X After J2SE 5.0 Update 4 Is Installed

After you install J2SE 5.0 on Mac OS X, it becomes the default virtual machine (VM) for all applications, including WebObjects applications. This document explains how to use the version 1.4.2 VM.

There are two ways to specify that a WebObjects application should use the earlier 1.4.2 VM.

To Develop with JVM 1.4.2

Use this method on a project under development. This changes the Java compiler, debugger, and VM used by Xcode.

  1. Double click the default (main) target from Xcode Targets. This target will probably have the same name as your project.
  2. In the Target view, select the 'Pure Java Specific' entry under the 'Info.plist Entries' --> 'Simple View'
  3. In the detail view, with the 'Target VM Version' pop-up menu, select the setting '1.4*'
  4. Rebuild the project.

To Deploy applications with JVM 1.4.2

Use this method on an application that is already deployed . This changes the Java VM used at runtime.

  1. Stop all instances of the application if they are running.
  2. Find your application's .woa file in the Finder.
  3. Control-click the .woa file to display the shortcut menu, and choose Show Package Contents .
  4. Open the file MacOSClassPath.txt in a text editor. (It's located at: Contents/MacOS/MacOSClassPath.txt)
  5. Replace the single word java on the first line with the full path to the 1.4.2 Java VM.
    # JVM == /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Commands/java

  6. Re-launch the application.

Xcode generates (overwrites) the MacOSClassPath.txt file during compilation, so this process must be repeated if the application is rebuilt.

Important: WebObjects 5.3.1 and earlier has not been qualified with J2SE 5.0 Update 4. Apple does not support using this combination.

Important: WebObjects 5.3 is available only via Apple Downloads.

Published Date: Oct 10, 2016