Configure Eclipse
Configure Eclipse
Install Eclipse
Download Eclipse from http://www.eclipse.org
Unzip
Execute eclipse.exe
Create a directory on disk for workspaces. There can be more than one workspace. Workspaces
contain 1 or more projects, which will be created later.
On start up, browse to the directory created for workspaces and select the option to not prompt
for workspace on startup.
Install FileSync
FileSync will copy files built in Eclipse over to Windchill.
Select OK.
Under “ Eclipse 3.5 – 3.7 plugins”, select only FileSync. De-select all other options.
Select OK.
Select Restart Now.
Configure FileSync
Select Window > Preferences and select File synchronization.
Select Add Folder… and configure at least the following two folders:
Select Window > Preferences. Then expand Java > Compiler and select Building:
De-select “Scrub output folders when cleaning projects” and select Apply.
Setup the default output directory for compiled classes. Expand Java and select Build Path. For
“Output folder name:” enter codebase.
Select OK.
Create an Eclipse Project
Select File > New > Project.
In the “New Project” wizard, expand Java and select Java Project. Frequently, the project type
Web > Dynamic Web Project is also selected.
Select Next >.
For “Project Name”, enter any name and select Finish.
Open a Windchill shell and review the CLASSPATH variable. On Windows, execute set cl:
Add the jars, libraries of jars and folders in the same order as the Windchill class path shown in the
Windchill shell:
WT_HOME/srclib/tool/Annotations.jar
WT_HOME/srclib/tool/AnnotationProcessing.jar
The Libraries tab will show in alphabetical order, but the actual class path order is shown in the
Order and Export tab according to the order JARs and directories were added:
Select OK.
eclipse_compiler / true
gen_class_info / true
wt.home / <path_to_WT_HOME>
Select OK.
In the left-hand side, expand Annotation Processing and select Factory Path. Select Add External
JARs… and add 7 JAR files:
WT_HOME/srclib/tool/Annotations.jar
WT_HOME/srclib/tool/AnnotationProcessing.jar
WT_HOME/srclib/install/InstallUtil.jar
WT_HOME/srclib/wnc/CommonCore.jar
WT_HOME/srclib/jmxcore/WtLogR.jar
WT_HOME/srclib/log4j.jar
WT_HOME/srclib/commons-collections.jar
Select OK.
A dialog box will open indicating the project needs to be rebuilt based on the new Annotation
settings.
Select Yes.
Export the Project Configuration to Create New Projects Quickly
Select File > Export
Optional
Install Aptana
Select Help > Install New Software …
Select Add…
For “Name:”, enter Aptana.