This wiki does not contain official documentation and is currently deprecated and read only. Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation. DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more. DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs. DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace. PARTICIPATE Become a part of Liferay's community, meet other Liferay users, and get involved in the open source project. Jikes
Table of Contents [-]
Jikes is an open source compiler for the Java language that was originally distributed by IBM. Liferay versions 4.3.x and earlier used Jikes instead of Sun's javac as its default compiler because it tends to generate more efficient bytecode. Liferay changed this use as of version 4.4.0 of the portal.
As of Liferay version 5.0, JDK 5.0+ is required. If you are using Jikes, please see notes below discussing JDK 5.0.
Jikes and JDK 5.0+ #
You must make sure you use the appropriate version of Jikes with the JDK you have installed:
| JDK Version | Jikes Version | |
|---|---|---|
| 1.4-1.4.2 | 1.21 | |
| 5.0-6.0 | 1.22 |
Using Sun's Compiler #
Jikes is of course optional. If you decide to use Sun's compiler:
- Create file build.{user name}.properties file, where {user name} is your system login name. Place it in the same directory as your build.properties file.
- Add a line into your build.{user name}.properties:
javac.compiler=modern
Liferay v4.4+ #
As of Liferay version 4.4.0, the default compiler configured is "modern" -- that is Sun's compiler. IBM has abandoned efforts on Jikes and later versions of Liferay will require the use of functionality that is not supported by Jikes.