Configuring your Liferay Plugins SDK 6.2 environment

Whether you've been developing on DXP: Digital Enterprise 7.0 or Liferay CE Portal 7.0, or are starting Liferay Poral EE/CE 6.2 plugin development, you'll need to configure your environment with a supported JDK and a compatible Ant installation.

Here are some steps to help orient you for developing in the Liferay Plugins SDK 6.2.

  1. Check the Liferay Portal compatibility matrix for the JDK version Liferay Portal supports. The Liferay Portal 6.2 EE matrix is here. Liferay Portal EE 6.2, for example, supports using Oracle JDK 7.
  2. Install a supported JDK version and configure it in your path. Check your terminal's version by running java -version. At this point when you try to build your plugin, you might still get an error like this one:
  3. java.lang.UnsupportedClassVersionError: org/apache/tools/ant/launch/Launcher: Unsupported major.minor version 52.0
  4. Install an Ant version that's compatible with your JDK and configure it in your path. Refer to the Ant FAQ to look up version compatibility. After installing Ant, check your version by running ant -version.
  5. Now when you execute a task in your plugins SDK, you might get a message that states this:
  6.     "Task cannot continue because ECJ is not installed.
  7.     ECJ was automatically installed. Please rerun your task."
  8.    The good news is that the Plugins SDK installed ECJ for you just now. Your task should run fine at this point.

You're home free to develop plugins in your 6.2 Plugins SDK!

 

0