...
Install Latest Stable Version of Eclipse
...
- Download Eclipse from http://www.eclipse.org/downloads/
...
- Compatibility note: as of 11/8/2011, the JBoss Drools Eclipse Workbench is not available as a stable release for Eclipse version 3.7.X (Eclipse Indigo). Therefore, it is recommended that Eclipse Helios (version 3.6.X) or newer Eclipse is used instead.
- Compatibility note: as of 11/8/2011, the JBoss Drools Eclipse Workbench is not available as a stable release for Eclipse version 3.7.X (Eclipse Indigo). Therefore, it is recommended that Eclipse Helios (version 3.6.X) or newer Eclipse is used instead.
...
- Update as of 11/14/2012: the above issue is no longer a problem
...
- In this example, installed Eclipse Helios version 3.6.2 from http://www.eclipse.org/downloads/packages/release/helios/sr2
...
- Select 32 or 64-bit version, whichever is appropriate for your machine/OS.
...
...
- Create an Eclipse instance by unzipping the zip archive into a directory of choice
...
- NOTE: if you already have eclipse installed (e.g., at C:\Program Files\eclipse) for other projects you are working on, we strongly recommend that you install eclipse in a different directory (e.g., C:\Program Files\eclipseOpenCDS). This way, you will not impact any existing code or Eclipse settings (e.g., with regard to plugins). Furthermore, in the event that you need to uninstall and reinstall OpenCDS, you will be able to delete the OpenCDS eclipse folder without impacting any other projects.
...
The default directory used for these instructions is C:\Program Files\eclipse, which is where the Eclipse instance will be created if you unzip the zip archive directly into C:\Program Files
...
- Notes
...
- You do not need to modify your path or add environment variables to use eclipse
...
- Read the release notes (especially if you have problems) found at C:\Program Files\eclipse\readme\readme_eclipse.html
...
- Remember that you can often fix weird problems in eclipse from a command prompt by running “eclipse –clean” which will start eclipse with a clean slate (and make it forget all the in-process state of files you were currently working on)
...
- Create a shortcut for Eclipse that passes in Java Virtual Machine parameters that a) ensures that the JDK is used rather than the JRE and b) ensures sufficient memory is allocated. Then, use the shortcut for launching Eclipse. Different shortcuts can be created if different Eclipse configurations are desired.
...
E.g., edit target of shortcut to:
Pre "C:\Program Files\eclipse\eclipse.exe" -vm "C:\Program Files\Java\jdk1.6.0_26\bin" -vmargs -Xmx900m
...
...
Alternatively, the
Pre C:\Program Files\eclipse\eclipse.ini can be edited.
...
...
...
When first starting Eclipse, set workspace to appropriate directory
...
Suggested location is “C:\OpenCDS”
...
An alternate suggested location if installing multiple versions of OpenCDS on the same machine is “C:\OpenCDS_[version]”
...
e.g., “C:\OpenCDS_v1.0_preview”, “C:\OpenCDS_alpha”, “C:\OpenCDS_v1.1.2”, etc.
Install Eclipse plugins
Eclipse has built-in tools to locate and install plug-ins, and to update them when necessary. Use the built-in tools whenever possible.
There are two ways to do this. The new method is called Eclipse Marketplace. Use it whenever you can by going to
Help
...
→ Eclipse Marketplace
The traditional method is more tedious, and will need to be used if you can’t find the software you are looking for in the Eclipse Marketplace. It is also used for some plugins that don’t install all the required options when run from the Marketplace menu. This method is used by going to
Help
...
→ Install New Software
...
- Install M2Eclipse
- Install M2Eclipse
...
- Before you can use Maven from Eclipse, you will need to make sure that you are running Eclipse from the JRE that is part of a JDK virtual machine. One safe way to do this is to create a shortcut for running Eclipse, and adding the path to the JDK in the shortcut target, as described above under the Eclipse installation instructions.
...
- From Eclipse Marketplace – DO NOT DO THIS! You will need to do the initial install the traditional way, as described next (the Eclipse Marketplace does not currently allow you to do a base install of m2eclipse)…
...
- From Install New Software
- From Install New Software
...
- Help → Install New Software
...
Type just the URL (http://m2eclipse.sonatype.org/sites/m2e) (1), click the Add button (2), type in “m2eclipse” for the name, and hit “okay” for adding the repository. You should then click in the box beside “Maven Integration for Eclipse (3), and click the Next button at the bottom of the Install window.
- It will verify your selection (making sure dependencies are present), and then give you a chance to go back to add dependencies, or continue by clicking Next
- Accept the license and click Finish.
...
- Restart Eclipse if prompted.
...
- If you get the following warning, click OK to ignore
...
- If you get the following error, restart the machine and try again.
...
- Make sure Eclipse is pointed to a JDK rather than a JRE in Eclipse Preferences (
...
- Windows → Preferences → Java → Installed JREs and
...
- Windows → Preferences → Java → Installed JREs → Execution Environments)
- Windows → Preferences → Java → Installed JREs → Execution Environments)
...
- slaklsa
- slaklsa
...
- slalfdksj
- slalfdksj
...
- ksla
- Install Subclipse
...
- From Eclipse Marketplace: DO NOT DO THIS! It installs correctly, but is missing some important functionality.
- From Eclipse Marketplace: DO NOT DO THIS! It installs correctly, but is missing some important functionality.
...
- UPDATE: The install from Eclipse Marketplace has apparently been fixed.
...
- From Install New Software
- From Install New Software
...
- Select all options from the menu after you enter / select the path as shown below
- Select all options from the menu after you enter / select the path as shown below
...
...
- Name = anything; suggest “Subclipse”
(2)
...
- Click on Next
- Click on Next
...
- It will verify your selection (making sure dependencies are present), and then give you a chance to go back to add dependencies, or continue by clicking Next.
...
- Accept the license and click Finish
...
- If you get the following warning, click OK to ignore.
...
- Restart Eclipse if prompted
...
- Set Eclipse Preferences for Subversion
- Set Eclipse Preferences for Subversion
i) Window à Preferences à Team à SVN
...
- Window → Preferences → Team → SVN
- Select a client for the SVN Interface
...
- If no clients are listed, you probably installed Subclipse from the Marketplace, and didn’t get the client. Go back to the step about installing Subclipse and get the client.
...
- For this example, JavaHL is selected
...
- Window → Preferences → Team → SVN → Menu icons
- Window → Preferences → Team → SVN → Menu icons
...
- Select Tortoise SVN
...
...
- Set up Tomcat Server in Eclipse
- Set up Tomcat Server in Eclipse
i) File à New à Other à Server à Server
...
- File → New → Other → Server → Server
- Select Apache Tomcat (e.g., Tomcat 7.0) and use default settings
- File → New → Other → Server → Server
(2)
...
- Select installation directory,
...
...
- Finish
- Set Eclipse Preferences for Maven
...
- Window → Preferences → Maven → Installations → Add → specify Maven root folder (e.g., C:\Program Files\Apache Software Foundation\apache-maven-3.0.3)
...
- → OK
...
- Create a settings.xml file in location specified in Eclipse under
...
- Window → Preferences → Maven → User Settings
...
Sample XML (used for this example):
Pre <?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0http://maven.apache.org/xsd/settings-1.0.0.xsd">
<pluginGroups>
</pluginGroups>
<proxies>
</proxies>
<servers>
</servers>
<mirrors>
</mirrors>
<profiles>
</profiles>
</settings>
...
- Restart Eclipse
...
- Update central Maven repository index, as follows. Note that if you don't do it here, it will automatically take place later in the installation process. We recommend updating the index here, so that if there is an error, it is clear where the error occurred.
- Update central Maven repository index, as follows. Note that if you don't do it here, it will automatically take place later in the installation process. We recommend updating the index here, so that if there is an error, it is clear where the error occurred.
...
- Windows → Show View →Other → Maven → Maven Repositories
- Windows → Show View →Other → Maven → Maven Repositories
...
- Click Global
...
- Repositories → right click "central", select Update Index
...
- This may take a while; you can track progress by clicking on the progress icon on the bottom right of the screen ()
...
- Sometimes, it takes multiple attempts before this completes. You may need to restart Eclipse in the process.
...
- If you see an error message of "Unable to update index for central," it may mean you need to turn off a Proxy connection (see http://www.ehow.com/how_6079770_using-proxy-server.html) or configure Proxy-based Maven connections (see http://maven.apache.org/guides/mini/guide-proxies.html). Once you have made the changes, verify that you do not get this error by repeating the steps above.
...
...
...
- InstallJbossDrools Eclipse Workbench (allows writing Drools rules and working with Drools Flow, and testing / debugging directly from Eclipse; part of JBoss Tools).
- InstallJbossDrools Eclipse Workbench (allows writing Drools rules and working with Drools Flow, and testing / debugging directly from Eclipse; part of JBoss Tools).
...
- Automatic installation from Eclipse
- Automatic installation from Eclipse
...
- Download Drools plugin for Eclipse
- Download Drools plugin for Eclipse
...
- Help → Install New Software
...
- Use appropriate URL found at http://www.jboss.org/tools/download.html. In this case, use http://download.jboss.org/jbosstools/updates/stable/helios/
...
- Name used in this example for repository: Drools
...
- Install the three Drools components indicated below under the SOA Development category
...
...
...
- If you get the following warning, click OK to ignore.
...
- Restart Eclipse if prompted
...
...
- Download the Drools Runtime version 5.5.0.Final
- Download the Drools Runtime version 5.5.0.Final
...
- Download file named Drools Binaries from http://www.jboss.org/drools/downloads.html, using link at
http://download.jboss.org/drools/release/5.5.0.Final/drools-distribution-5.5.0.Final.zip
- Download file named Drools Binaries from http://www.jboss.org/drools/downloads.html, using link at
...
- Place contents of the binaries folder in the zip archive into a directory (C:\Data\Drools\Drools5.5.0.Final is used in this guide)
...
- E.g., this directory should look like the following:
...
...
- Configure Drools Eclipse Workbench
- Configure Drools Eclipse Workbench
Windows à Preferences à Drools à Installed Drools Runtime à Add
...
- Windows → Preferences → Drools → Installed Drools Runtime → Add
- Add the version of Drools (since you are allowed to have more than one installed) that you want to add to the build path of newly created Drools projects (the example below shows an older version, you should use the current version of Drools that you have just installed).
- Windows → Preferences → Drools → Installed Drools Runtime → Add
...
- Select the Drools runtime for use (Use the current version, not 5.3 as shown below)
...
- Restart Eclipse
OpenCDS Configuration in Eclipse
...