Search the web
Sign In
New User? Sign Up
jmriusers · JMRI users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
My approach for running JMRI under Eclipse   Topic List   < Prev Topic  |  Next Topic >
Reply | Forward < Prev Message  |  Next Message > 
[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".



Wed Aug 30, 2006 1:07 pm

rxanand
Offline Offline
Send Email Send Email

Forward
< Prev Message  |  Next Message > 
Expand Messages Author Sort by Date

[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...
Rangachari Anand
rxanand
Offline Send Email
Aug 30, 2006
1:10 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help