[I sent this to Bob Jacobsen but I am not sure if he got it so I decided
to send this to the group at large.]
The reason that I am running under Eclipse is that I have decided to
write my control software directly in Java itself rather than Jython.
I find that this is actually easier for me, since my application uses
a fair number of threads. The new synchronization classes in JDK 1.5
makes thread management easier. It definitely seems easier to work
with threads directly in Java rather than Jython.
My instructions are a bit easier than those provided on the JMRI web
site <http://jmri.sourceforge.net/doc/Technical/Eclipse.html> since I
assume that I will not be directly committing to CVS. I do use a local
Subversion repository for my development work.
1. Export the source code from CVS to a directory of your choice as follows:
cvs -d:pserver:anonymous@...:/cvsroot/jmri export
-r Release-1-6-1 all
2. Create a new Java project for jmri in your Eclipse workspace. I use
the default settings, i.e. no separate directory for source and
binaries. You may choose to do it differently.
3. Import the following directories from the exported JMRI code into
the source directory of the Eclipse JMRI project:
/help
/resources
/xml
/lib
/jython
3. Import the Java source from the exported code (java/src) to the
source directory in your Java project.
4. Add all jars in the lib directory to the build path of the project:
MRJAdapter.jar
Serialio.jar
collections.jar
comm.jar
crimson.jar
jdom-jdk11.jar
jh.1.1.2.jar
jh.jar
junit.jar
jython.jar
log4j.jar
5. Import javax.comm.properties and win32com.dll directly from the
JMRI binary distribution. These files are not checked into CVS.
- Import javax.comm.properties to the lib directory of your project
- Import win32com.dll to the top directory of your project.
6. To run an application, simply right click on the application class
in the Package explorer view and then select "Run as Java
application".