2008-06-07 11:49:12 +00:00
|
|
|
Configuring Eclipse
|
|
|
|
===================
|
|
|
|
This document describes how to setup Eclipse with AppleCommander.
|
2008-06-08 15:15:04 +00:00
|
|
|
It describes configurations for Windows or Mac with Eclipse 3.3.x.
|
|
|
|
Configurations for other environments should be similar.
|
2008-06-07 11:49:12 +00:00
|
|
|
|
|
|
|
SWT_JAR Classpath Variable
|
|
|
|
==========================
|
|
|
|
When developing in Eclipse, the SWT library needs to be available.
|
|
|
|
AppleCommander has been configured to expect an SWT_JAR environment variable.
|
|
|
|
|
|
|
|
On Windows, go to Window -> Preferences -> Java -> Classpath Variables.
|
|
|
|
Click on New button and enter SWT_JAR for the variable name. Choose the
|
|
|
|
File button to set the path and locate the swt.jar. A similarly named
|
|
|
|
file will be located at:
|
2008-06-06 16:57:42 +00:00
|
|
|
<ECLIPSE_HOME>/plugins/org.eclipse.swt.win32.win32.x86_3.3.0.v3346.jar
|
2008-06-07 11:49:12 +00:00
|
|
|
|
|
|
|
On Mac, go to Eclipse -> Preferences -> Java -> Classpath Variables to
|
|
|
|
add a new variable. The corresponding library will look like this:
|
2008-06-08 15:15:04 +00:00
|
|
|
<ECLIPSE_HOME>//plugins/org.eclipse.swt.carbon.macosx_3.3.3.v3349.jar
|
2003-02-07 22:48:17 +00:00
|
|
|
|
2008-06-07 11:49:12 +00:00
|
|
|
Click OK and close out of each dialog. Answer YES to the prompt
|
|
|
|
regarding recompiling your entire workspace.
|
2003-02-07 22:48:17 +00:00
|
|
|
|
|
|
|
Running AppleCommander within Eclipse
|
|
|
|
=====================================
|
2008-06-08 16:40:48 +00:00
|
|
|
On either platform, you can create a new run configuration by selecting Run ->
|
|
|
|
Open Run Dialog. Create a new Java Application for Project AppleCommander,
|
|
|
|
Main class com.webcodepro.applecommander.ui.AppleCommander, and Arguments -swt.
|
|
|
|
|
2008-06-07 11:49:12 +00:00
|
|
|
On Windows, the DLL file associated with SWT needs to be located by the JVM.
|
|
|
|
To do this, add the following flag to VM arguments:
|
2003-02-07 22:48:17 +00:00
|
|
|
-Djava.library.path="<ECLIPSE_HOME>\plugins\org.eclipse.swt.win32_2.0.2\os\win32\x86"
|
2008-06-07 11:49:12 +00:00
|
|
|
|
2008-06-08 16:40:48 +00:00
|
|
|
On Mac, no additional configuration is necessary.
|
2003-02-07 22:48:17 +00:00
|
|
|
|
2008-06-07 11:49:12 +00:00
|
|
|
Java Build Path
|
|
|
|
===============
|
2008-06-08 15:15:04 +00:00
|
|
|
The project's Java build path may be edited by selecting Project ->
|
2008-06-07 11:49:12 +00:00
|
|
|
Properties -> Java Build Path. Also, look at the Java Build Path help
|
2008-06-08 16:40:48 +00:00
|
|
|
page. A typical .classpath might look like this On either Windows or Mac:
|
2008-06-07 11:49:12 +00:00
|
|
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<classpath>
|
|
|
|
<classpathentry kind="src" path="src"/>
|
|
|
|
<classpathentry kind="src" path="test"/>
|
|
|
|
<classpathentry kind="var" path="SWT_JAR"/>
|
|
|
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
|
|
|
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3"/>
|
|
|
|
<classpathentry kind="output" path="bin"/>
|
|
|
|
</classpath>
|