¿ªÔÆÌåÓý

Locked Re: Need help compilling and running JMRI


Robin Becker
 

Bob,

Perhaps this recipe will now work (if so, we should write it out in
more detail):

Start from scratch with a new folder.

check out the source from CVS

move the project/java/lib file to somewhere convenient, away from
the project folder. (This is to avoid confusion later on,
because we're going to make a global config point to the
contents) (_Don't_ move the project/lib file, that's needed at
runtime)

Start JBuilder. Immediately select Project -> Project Properties,
click on the Build pane, then the Required Libraries pane within that.

JMRIlibraries will be shown in red. Click it and hit Edit.

On the resulting "class" tab, click "add" and add each of the
.jar files from your moved lib file. There are seven of them,
and you have to add each one.

click OK, click OK

From the main menu, click Project -> Rebuild

Click the "diamond" to run the JmriDemo program.

At this point, you should have a working app. Configure it, save and
restart.

I tried the procedure and it works! Just one change though - in JB Personal
there is no Library option on Project Properties. Instead you go to
Tools/ConfigureLibraries and then add the files to JMRILibraries there.
(FYI I moved java/lib folder to Windows/jmri/lib)

Hopefully, this all works... Its a pain to set up the libraries, but
apparently the free JBuilder requires absolute path names in its
library-definition file. That makes it really hard for us to provide
one that you can just move into place.

At 10:44 AM +1200 8/15/02, Alex Shepherd wrote:
>If all this turns out to be too difficult, then if we moved to an ANT
based
>build (which is also supported in JB7) then those who do not have JB Pro
or
>Ent could maybe download the Java IDE at and
develop
>using this. Using ANT would be more work but it would give us more
control.
>People could even just download a JDK and ANT and use Notepad to edit the
>code and call ANT from the command line, like many UNIX users have done
for
>the last 30 years...

Mike Davison get this to work a little while back. If you've got ant
installed, you can do a

cvs -d :pserver:anonymous@...:/cvsroot/jmri co ant

ant jmridemo

to checkout, build and run the program. "ant decoderpro" does the
obvious thing too. I've not tried it on Windows, but it worked this
morning on MacOS X and Linux.


Just so I understand the above. Is Alex saying that a more desirable
alternative to JB7 is to use a different Jave IDE along with ANT? So all
the time spent over the last two days working with Bob to get JB7 working
was... a waste of time?! <gulp> Oh well, as my favorite prof in grad
school used to say, "All experiences are bad, some seem good in retrospect."
:-)

Robin

Join [email protected] to automatically receive all group messages.