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:
- Within the Project Explorer view of your workspace, right-click LOBTools > Properties.
- Click Java Build Path.
- Under the Libraries tab click Add Library.
- In the Add Library panel, select JRE System Library. Click Next.
- Select Alternate JRE. From the drop-down list select WebSphere v6 JRE.
- Click Finish and OK.
- Attempt to build your OpenLaszlo project again.
Related reference