openCRX 2.0 SDK for Eclipse Step-by-Step Guide

This guide explains how to setup openCRX 2.0 SDK for Eclipse.

IMPORTANT: This guide assumes that openCRX 2.0 SDK project is successfully setup as described in the openCRX 2.0 SDK for Ant Step-by-Step and openCRX 2.0 SDK on Tomcat/LWC Step-by-Step guides.

Make sure that you have installed Eclipse 3.2 or higher (download it from here and the Sysdeo Eclipse Tomcat Launcher plugin (download it from here).

After installation launch Eclipse. Create a new workspace by selecting File > Switch Workspace > Other. Enter the directory name of the new workspace. In this guide we will use the directory .\SF\eclipse\openmdx-example-workshop as shown below:

pic010.gif

Eclipse will be launched with a new empty workspace.

pic020.gif

Close the Welcome page. Open the preferences dialog with Window > Preferences. Navigate to the entry Java > Installed JREs. Because the openCRX requires a JDK 1.5 we first have to add a JDK 1.5 compliant JRE. Click on Add and then enter JRE 5.0 as JRE name and select the home directory of an installed JDK 1.5. Eclipse automatically completes the other fields of the dialog as shown below:

pic040.gif

Select the newly added JRE 5.0 as default JDK.

pic050.gif

Next we will import the openCRX SDK projects. Select File > Import.

pic060.gif

Select Existing Projects into Workspace.

pic070.gif

Navigate to the openCRX 2.0 SDK installation directory. In our case this is C:\temp\SF\opencrxSdk-2.0.0\opencrx-2.0.0. Eclipse recursively scans all directories. As a result it should present a list of projects as shown below:

pic080.gif

Deselect the following projects

  • openCRX 2 ~ Core
  • openCRX 2 ~ Groupware
  • openCRX 2 ~ Store
  • openMDX 2 ~ Core
  • openMDX 2 ~ Security
  • openMDX 2 ~ Portal
  • openMDX 2 Platform ~ IBM WebSphere 5
  • openMDX 2 Thirdparty ~ Java2 Extension (jre-1.3)
We will re-add the required projects manually in the next step. Then click Finish.

pic090.gif

The package explorer view now lists the projects shown below:

pic100.gif

Next we import the openMDX/Core project. Open the import dialog with File > Import > Existing Projects into Workspace. Navigate to the directory .\opencrxSdk-2.0.0\opencrx-2.0.0\opt\openmdx-2.0.0\jre-1.5\core and click Finish.

pic110.gif

Next we do the same with the project openMDX/Portal. Open the import dialog with File > Import > Existing Projects into Workspace. Navigate to the directory .\opencrxSdk-2.0.0\opencrx-2.0.0\opt\openmdx-2.0.0\jre-1.5\portal and click Finish.

pic120.gif

Next we do the same with the project openMDX/Security. Open the import dialog with File > Import > Existing Projects into Workspace. Navigate to the directory .\opencrxSdk-2.0.0\opencrx-2.0.0\opt\openmdx-2.0.0\jre-1.5\security and click Finish.

pic130.gif

And now we are ready to import the openCRX projects:

Open the import dialog with File > Import > Existing Projects into Workspace. Navigate to the directory .\opencrxSdk-2.0.0\opencrx-2.0.0\core and click Finish.

pic140.gif

Open the import dialog with File > Import > Existing Projects into Workspace. Navigate to the directory .\opencrxSdk-2.0.0\opencrx-2.0.0\groupware and click Finish.

pic150.gif

Open the import dialog with File > Import > Existing Projects into Workspace. Navigate to the directory .\opencrxSdk-2.0.0\opencrx-2.0.0\store and click Finish.

pic160.gif

Next we have to fix some project settings for the following projects

  • openCRX 2 ~ Core
  • openCRX 2 ~ Groupware
  • openCRX 2 ~ Store
For each of these projects do the steps as described below.

Open the project properties dialog:

pic170.gif

Go to the entry Java Build Path and remove the projects openMDX 2 ~ Core, openMDX 2 ~ Portal and openMDX 2 ~ Security:

pic180.gif

Then click on Add and add the projects openMDX 2 (2.0.0) ~ Core, openMDX 2 (2.0.0 ~ Portal, openMDX 2 (2.0.0) ~ Security:

pic190.gif

The Java Build Path should then look like this:

pic200.gif

Now go to the entry Java Compiler and set the Compiler compliance level to 5.0:

pic210.gif

Next we have to configure Tomcat. Open the preferences dialog with Window > Preferences and navigate to the entry Tomcat. Set the version to Tomcat 6.x and the Tomcat Home to .\openmdxTomcatLwc-2.0.0\apache-tomcat-6.

pic220.gif

In the tab Advanced select all projects.

pic230.gif

In the tab JVM Settings do the following:

  • Set JRE 5.0 in the JRE drop-down
  • Add the JVM parameter -Xmx400M
  • Add the JVM parameter -Djava.protocol.handler.pkgs=org.openmdx.kernel.url.protocol
pic240.gif

In the tab Source Path select Automatically Compute Source Path.

pic250.gif

Then go back to the tab JVM Settings and click Create Start Configuration. This creates an Eclipse launch file which allows to launch Tomcat 6 with the settings we have made.

pic260.gif

Before we can launch Tomcat we first have to complete the classpath of the Tomcat 6.x launch file. Open the Run dialog with Run > Open Run Dialog.

pic270.gif

Select the launch file for Tomcat 6.x, select the tab Classpath and navigate to User Entries. Then click on Add External JARs.

pic280.gif

Navigate to the directory .\openmdxTomcatLwc-2.0.0\apache-tomcat-6\lib and select all JARs in this directory as shown below.

pic290.gif

The selected JARs are added to the User Entries.

pic300.gif

Finally you can start Tomcat. Open the Run dialog with Run > Open Run Dialog. Select Tomcat 6.x and click Run. The console output should look as shown below. Compare your output with this sample output.

pic310.gif

Congratulations

Congratulations! You have successfully prepared openCRX 2.0 SDK for Eclipse.

Version 56.1 last modified by superadmin on 20/08/2008 at 03:42

Comments 0

No comments for this document

Attachments 32

Image
pic140.gif 1.1
PostedBy: superadmin on 29/04/2008 (48kb )
Image
pic100.gif 1.1
PostedBy: superadmin on 29/04/2008 (26kb )
Image
pic110.gif 1.1
PostedBy: superadmin on 29/04/2008 (49kb )
Image
pic120.gif 1.1
PostedBy: superadmin on 29/04/2008 (40kb )
Image
pic130.gif 1.1
PostedBy: superadmin on 29/04/2008 (54kb )
Image
pic010.gif 1.1
PostedBy: superadmin on 29/04/2008 (20kb )
Image
pic020.gif 1.1
PostedBy: superadmin on 29/04/2008 (192kb )
Image
pic030.gif 1.1
PostedBy: superadmin on 29/04/2008 (75kb )
Image
pic050.gif 1.1
PostedBy: superadmin on 29/04/2008 (48kb )
Image
pic060.gif 1.1
PostedBy: superadmin on 29/04/2008 (14kb )
Image
pic070.gif 1.1
PostedBy: superadmin on 29/04/2008 (26kb )
Image
pic080.gif 1.1
PostedBy: superadmin on 29/04/2008 (54kb )
Image
pic090.gif 1.1
PostedBy: superadmin on 29/04/2008 (74kb )
Image
pic150.gif 1.1
PostedBy: superadmin on 29/04/2008 (46kb )
Image
pic160.gif 1.1
PostedBy: superadmin on 29/04/2008 (48kb )
Image
pic170.gif 1.1
PostedBy: superadmin on 29/04/2008 (57kb )
Image
pic180.gif 1.1
PostedBy: superadmin on 29/04/2008 (124kb )
Image
pic190.gif 1.1
PostedBy: superadmin on 29/04/2008 (75kb )
Image
pic200.gif 1.1
PostedBy: superadmin on 29/04/2008 (48kb )
Image
pic210.gif 1.1
PostedBy: superadmin on 29/04/2008 (55kb )
Image
pic220.gif 1.1
PostedBy: superadmin on 29/04/2008 (94kb )
Image
pic230.gif 1.1
PostedBy: superadmin on 29/04/2008 (54kb )
Image
pic240.gif 1.1
PostedBy: superadmin on 29/04/2008 (58kb )
Image
pic250.gif 1.1
PostedBy: superadmin on 29/04/2008 (71kb )
Image
pic260.gif 1.1
PostedBy: superadmin on 29/04/2008 (61kb )
Image
pic270.gif 1.1
PostedBy: superadmin on 29/04/2008 (34kb )
Image
pic280.gif 1.1
PostedBy: superadmin on 29/04/2008 (96kb )
Image
pic290.gif 1.1
PostedBy: superadmin on 29/04/2008 (110kb )
Image
pic300.gif 1.1
PostedBy: superadmin on 29/04/2008 (95kb )
BIN
eclipse-console-output.log 1.1
PostedBy: superadmin on 29/04/2008 (6kb )
Image
pic040.gif 1.1
PostedBy: superadmin on 29/04/2008 (79kb )
Image
pic310.gif 1.1
PostedBy: superadmin on 29/04/2008 (49kb )

Creator: on 2008/08/20 03:42
openCRX is licensed under a BSD license
1.3.8295