Troubleshoot: Error message - Unable to locate a Java runtime

Attempting to build an OpenLaszlo project results in a Java runtime error.

 

Problem

When working with the LOBTools project an attempt to build the project fails with the following message:
Compiling LOBTools(Error:Unable to locate a Java runtime.
 Verify that a Java runtime is defined on the build path for LOBTools.)

 

Solution

Define a Java runtime:

  1. Within the Project Explorer view of your workspace, right-click LOBTools > Properties.

  2. Click Java Build Path.

  3. Under the Libraries tab click Add Library.

  4. In the Add Library panel, select JRE System Library. Click Next.

  5. Select Alternate JRE. From the drop-down list select WebSphere v6 JRE.

  6. Click Finish and OK.

  7. Attempt to build your OpenLaszlo project again.