¿ªÔÆÌåÓý

Date

Locked DecoderPro: Outstanding!

jbuckley96813
 

Bob...

Got the DecoderPro 1.0.4 and LocoBuffer up and running with little
difficulty and, as a long time PR1 user, let me say this is what I've
been waiting for! You guys have done an outstanding job. Today I
enjoyed reading through most of the messages on this group to gain
some more knowledge and background.

Since constructive criticism is encouraged, here's mine (small ones,
actually):

1) I'd like to see DecoderPro follow the convention where, when you
tab to the next field, it's contents become highlighted so you can
immediately begin typing.

2) The lights tab on the DN140 does not reflect it's FX lighting
options. I have to use the DN142 programmer and ignore it's BEMF section.

3) The tab with individual CVs seems like it may be a little flakey,
but no real proof yet. I noticed that writing one particular CV on
that tab might have affected some others, but not sure. I'll test some
more.

So far I've only experimented with a SW1 w/DN140 and a Bachmann
3-Truck Shay w/Soundtraxx B3TSLC. They program perfectly. I've got
about 10 or 15 more locos with all kinds of decoders -- will report
back. So far I love this setup!!

Aloha,
Jim
Dinkey Creek & Lone Pine RR


Locked Re: Decoder pro

Wendell Camp
 

Bob I am a little thick head at times I found start here html thank for the help. do I need the pictures that downloaded for anything. I order a loco buffer can wait to try it (little kid in me )Thanks Wendell

----- Original Message -----
From: Bob Jacobsen
Sent: Tuesday, August 20, 2002 6:01 PM
To: jmriusers@...
Subject: Re: [jmriusers] Decoder pro

At 5:18 PM -0400 8/20/02, Wendell Camp wrote:
Hi mike Bob sent me a cd tha I understood to have the install
program for java +decoder pro what I find on cd is 130 pictures that
are of ants +decoder pro screens= the same decoder pro information
on web site unless I'm not understanding some thing thanks Wendell
Sorry, have only intermittent email this week.

The CD should have a "Start Here.html" file on it which, when opened
in a browser, will show you how its structured.

Basically, there's a directory or folder for each type of computer:

Windows
OS2
MacOS X
Linux
MacOS Classic

Inside each, you'll find the things you need for that type of
machine. For example, inside the "Windows" folder, you should find:

Windows install.html - install instructions
j2re-1_3_1_01-win.exe - this installs Java
JMRI.1.0.exe - installer for the program
COPYING - this is the license to use it

Open the "Windows install.html" file with a browser for instructions.
Note that the contents of the folders for other computer types will
differ.

There are some other directories/folders with reference information:

site - this is a copy of the web site

Source - this is the source code for the program

Tools - installers for tools for building the program

At this stage, you should ignore those and just install the program
by following the "Start Here" instructions.

Bob

--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)

Yahoo! Groups Sponsor
ADVERTISEMENT



To unsubscribe from this group, send an email to:
jmriusers-unsubscribe@...



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


Locked Re: Decoder pro

 

At 5:18 PM -0400 8/20/02, Wendell Camp wrote:
Hi mike Bob sent me a cd tha I understood to have the install program for java +decoder pro what I find on cd is 130 pictures that are of ants +decoder pro screens= the same decoder pro information on web site unless I'm not understanding some thing thanks Wendell

----- Original Message -----
From: Mike Davison
Sent: Monday, August 19, 2002 8:16 PM
To: jmriusers@...; Wendell Camp
Subject: Re: [jmriusers] Decoder pro


Wendell,

Bob mentioned that he would be a way from e-mail for a bit so perhaps if you provide a bit more background for your questions others can answer.
Ant is one of the development tools used to build Decoder Pro. You would use ant or Jbuilder if you wanted to modify the Decoder Pro/JMRI software. If you simply want to use the software you do not need ant. You need Decoder Pro, JMRI, Java and, depending on your computer/OS type, a Java serial port library.
cheers,
Mike

On Monday 19 August 2002 02:29 pm, Wendell Camp wrote:
Bob I don't know if I misunderstood but I thought the java install and
decoder pro where on the cd whats with the ant pictures a little confused Wendell
----- Original Message -----
From: Bob Jacobsen
Sent: Tuesday, August 13, 2002 6:49 PM
To: jmriusers@...
Subject: Re: [jmriusers] Decorder pro

>I want to down load decoder pro . can I down load to floppy dis so I
>can load it on to a laptop with only floppy drive
(Sorry, hit send too soon on that last one. I really need to get some sleep...)
If the laptop has a CD drive, write me off-list with your mailing address and I can send you a CD with all the needed installers, including Java.
Bob
-- --------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
Yahoo! Groups Sponsor
ADVERTISEMENT
To unsubscribe from this group, send an email to:
jmriusers-unsubscribe@...
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. To unsubscribe from this group, send an email to:
jmriusers-unsubscribe@...
Your use of Yahoo! Groups is subject to

Yahoo! Groups Sponsor
ADVERTISEMENT



To unsubscribe from this group, send an email to:
jmriusers-unsubscribe@...



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.





To unsubscribe from this group, send an email to:
jmriusers-unsubscribe@...



Your use of Yahoo! Groups is subject to

--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)


Locked Re: Decoder pro

 

At 5:18 PM -0400 8/20/02, Wendell Camp wrote:
Hi mike Bob sent me a cd tha I understood to have the install program for java +decoder pro what I find on cd is 130 pictures that are of ants +decoder pro screens= the same decoder pro information on web site unless I'm not understanding some thing thanks Wendell
Sorry, have only intermittent email this week.

The CD should have a "Start Here.html" file on it which, when opened in a browser, will show you how its structured.

Basically, there's a directory or folder for each type of computer:

Windows
OS2
MacOS X
Linux
MacOS Classic

Inside each, you'll find the things you need for that type of machine. For example, inside the "Windows" folder, you should find:

Windows install.html - install instructions
j2re-1_3_1_01-win.exe - this installs Java
JMRI.1.0.exe - installer for the program
COPYING - this is the license to use it

Open the "Windows install.html" file with a browser for instructions. Note that the contents of the folders for other computer types will differ.

There are some other directories/folders with reference information:

site - this is a copy of the web site

Source - this is the source code for the program

Tools - installers for tools for building the program

At this stage, you should ignore those and just install the program by following the "Start Here" instructions.

Bob

--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)


Locked Re: Decoder pro

Wendell Camp
 

Hi mike Bob sent me a cd tha I understood to have the install program for java +decoder pro what I find on cd is 130 pictures that are of ants +decoder pro screens= the same decoder pro information on web site unless I'm not understanding some thing thanks Wendell

----- Original Message -----
From: Mike Davison
Sent: Monday, August 19, 2002 8:16 PM
To: jmriusers@...; Wendell Camp
Subject: Re: [jmriusers] Decoder pro


Wendell,

Bob mentioned that he would be a way from e-mail for a bit so perhaps if you
provide a bit more background for your questions others can answer.

Ant is one of the development tools used to build Decoder Pro. You would use
ant or Jbuilder if you wanted to modify the Decoder Pro/JMRI software. If you
simply want to use the software you do not need ant. You need Decoder Pro,
JMRI, Java and, depending on your computer/OS type, a Java serial port
library.

cheers,
Mike

On Monday 19 August 2002 02:29 pm, Wendell Camp wrote:
Bob I don't know if I misunderstood but I thought the java install and
decoder pro where on the cd whats with the ant pictures a little confused
Wendell

----- Original Message -----
From: Bob Jacobsen
Sent: Tuesday, August 13, 2002 6:49 PM
To: jmriusers@...
Subject: Re: [jmriusers] Decorder pro

I want to down load decoder pro . can I down load to floppy dis so I
can load it on to a laptop with only floppy drive
(Sorry, hit send too soon on that last one. I really need to get
some sleep...)

If the laptop has a CD drive, write me off-list with your mailing
address and I can send you a CD with all the needed installers,
including Java.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)

Yahoo! Groups Sponsor
ADVERTISEMENT



To unsubscribe from this group, send an email to:
jmriusers-unsubscribe@...



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.






To unsubscribe from this group, send an email to:
jmriusers-unsubscribe@...



Your use of Yahoo! Groups is subject to



Yahoo! Groups Sponsor
ADVERTISEMENT



To unsubscribe from this group, send an email to:
jmriusers-unsubscribe@...



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


Locked Re: Decoder pro

Mike Davison
 

Wendell,

Bob mentioned that he would be a way from e-mail for a bit so perhaps if you
provide a bit more background for your questions others can answer.

Ant is one of the development tools used to build Decoder Pro. You would use
ant or Jbuilder if you wanted to modify the Decoder Pro/JMRI software. If you
simply want to use the software you do not need ant. You need Decoder Pro,
JMRI, Java and, depending on your computer/OS type, a Java serial port
library.

cheers,
Mike

On Monday 19 August 2002 02:29 pm, Wendell Camp wrote:
Bob I don't know if I misunderstood but I thought the java install and
decoder pro where on the cd whats with the ant pictures a little confused
Wendell

----- Original Message -----
From: Bob Jacobsen
Sent: Tuesday, August 13, 2002 6:49 PM
To: jmriusers@...
Subject: Re: [jmriusers] Decorder pro

I want to down load decoder pro . can I down load to floppy dis so I
can load it on to a laptop with only floppy drive
(Sorry, hit send too soon on that last one. I really need to get
some sleep...)

If the laptop has a CD drive, write me off-list with your mailing
address and I can send you a CD with all the needed installers,
including Java.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)

Yahoo! Groups Sponsor
ADVERTISEMENT



To unsubscribe from this group, send an email to:
jmriusers-unsubscribe@...



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.






To unsubscribe from this group, send an email to:
jmriusers-unsubscribe@...



Your use of Yahoo! Groups is subject to



Locked Re: Decoder pro

Wendell Camp
 

Bob I don't know if I misunderstood but I thought the java install and decoder pro where on the cd whats with the ant pictures a little confused Wendell

----- Original Message -----
From: Bob Jacobsen
Sent: Tuesday, August 13, 2002 6:49 PM
To: jmriusers@...
Subject: Re: [jmriusers] Decorder pro

I want to down load decoder pro . can I down load to floppy dis so I
can load it on to a laptop with only floppy drive
(Sorry, hit send too soon on that last one. I really need to get
some sleep...)

If the laptop has a CD drive, write me off-list with your mailing
address and I can send you a CD with all the needed installers,
including Java.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)

Yahoo! Groups Sponsor
ADVERTISEMENT



To unsubscribe from this group, send an email to:
jmriusers-unsubscribe@...



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


Locked Re: Compilling and running JMRI

 

At 5:28 PM +0000 8/13/02, sixth_rule wrote:

my actual goal in this hole thing is to figure out simply how to make
a java program that
1) acesses the serial ports
2) reads all the loconet packets that come over the system
3) Write packets to the serial ports
Take a look at the jmri.jmrix.loconet.LocoNetInterface and jmri.jmrix.loconet.LocoNetListener interfaces.

Basically, you write a class that implements LocoNetListener, and register it with a LocoNetInterface. Your class will then have its message(...) method called with each LocoNet message that's seen, and will be able to send messages.

For a simple example, you might start by copying the code in the LocoNet turnout implementation, jmri.jmrix.loconet.LnTurnout.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)


Locked Re: Need help compilling and running JMRI

Alex Shepherd
 

There was a comment that the compiler used by JB was different than the
one
used so far. Having dealt with compiler bugs, I wonder if this is a
concern? If so, would that be a reason to standardize on the ANT
approach?

We saw differences when we turned on/off debugging information. Not errors
as such just differences in behaviour, which caused differences in class
signatures, which caused differences in Serialization SerialVers - that's
all.

I would not panic and switch to ANT just because of compiler differences.
Longer term you might want to go the ANT way anyway as you are in explicit
control of the build process, rather than hoping that you clicked on the
right thing in JBuilder to encourage it to do what you want. Usually this is
not a problem but we have already seen the subtle way JB Personal is hobbled
compared to Pro and Ent. Moving to ANT would potentially re-aligh the
process.

However this would require us all to get to know "yet another build process"
as I only have second-hand knowlege of ANT as I had others sort it for us.

Cheers

Alex Shepherd


Locked Re: Need help compilling and running JMRI

Robin Becker
 

Alex,

Thanks for filling in the detail. My original comment was intended to be
lighthearted (mostly) :-), hope no offense was taken.

There was a comment that the compiler used by JB was different than the one
used so far. Having dealt with compiler bugs, I wonder if this is a
concern? If so, would that be a reason to standardize on the ANT approach?

Robin

-----Original Message-----
From: Alex Shepherd [mailto:ashepherd@...]
Sent: Thursday, August 15, 2002 5:45 PM
To: jmriusers@...
Subject: Re: [jmriusers] Need help compilling and running JMRI


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."

No, I'm just saying there are choices, that depending on your
pain threshold
and determination, you can choose...


Locked Re: Need help compilling and running JMRI

Jon Miller
 

Bob and all,
Read the latest review of the Broadway Limited 4-6-4 on the TTX site.
Looks like Tony may have a fix to make it programmable on the program track
AND it looks like the panes for DecoderPro will be a real challenge<VBG>.

Jon Miller
AT&SF
For me time has stopped in 1941
Digitrax DCC owner, Chief system
NMRA Life member #2623
Member SFRH&MS


Locked Re: Need help compilling and running JMRI

Alex Shepherd
 

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."

No, I'm just saying there are choices, that depending on your pain threshold
and determination, you can choose.

- JB4-7 Pro or Ent don't seem to have a problem building the packages, so
the current project files pretty much work fine. So if you have access to
one of these all is well

- JB7 Ent (and probably Pro, but probably not with Personal) supports
building with ANT. If after these efforts, it turned out that we should move
from the JBuilder Project based build to an ANT based build, then JB7 knows
how to handle ANT projects and does the right thing, so all is still well
for those who like JBuilder.

- For those who want an IDE and don't like the convoluted way you have to do
things with JB Personal then there is another IDE called Eclipse, that IBM
developed and made open source to seed a new extensible IDE in the market to
hopefully allow tool developers to all support a common platform. The
eclipse code base is what IBM release their commercial WSAD IDE. I
understand the free version that is available on the eclipse site is a full
Java IDE that is fully functional. It just doesn't have all the IBM
application server capabilities etc. I think it also supports ANT projects
which is why I mention it as an alternative.

- For those who don't want to learn yet another IDE and just want to make a
few mods and build then they can just get a JDK and the ANT package, which
once installed can build the entire package from the command line. Some may
simply prefer this to having to learn a new IDE and everything that goes
with that. (as you know)

Personally I like the current JBuilder mechanism as I know how it works and
it works for me with my setup. Obviously your mileage may vary....

Cheers

Alex


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


Locked Re: Need help compilling and running JMRI

 

First, my thanks to Robin for his persistance in trying to get this to work.

At 9:19 AM +1200 8/15/02, Alex Shepherd wrote:
The problem here is that the project file has a reference to a bunch of
libraries but with JBuilder Personal it does not allow per project library
definitions only personal global definitions. (to provoke you to buy the
next version) so It is looking for the library definition in your personal
home directory (where ever Windows decides that is) This is something you
have to do personally as I am not sure how we could convinve WinCVS to put
the library definition there.
OK, this makes more sense to me now. For the record, JBuilder is putting this type of information in

C:&#92;Documents and Settings&#92;jake&#92;.jbuilder7

on my son's PC running XP. (He gave me an account called "jake"). I've also seen it stored in

C:&#92;Documents and Settings&#92;Owner&#92;.jbuilder7
C:&#92;Documents and Settings&#92;All Users&#92;.jbuilder7
C:&#92;.jbuilder7

This is the problem with automagically installing files on Windows; it's _really_ hard to figure out where they go! We have a similar problem with the JMRI preferences. I solved that by having them stored the first time the program starts up, but JBuilder doesn't do that.

Robin was also having a couple of problems with what JBuilder choses to build. I've added a bunch of explicit entries to the project definition jmri.jpx file and committed it back to CVS. Hopefully that will fix the "class not found" problems.

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.

Also, you can run the pure DecoderPro app by sliding down the upper right box to the DecoderPro.java file, clicking it to open on the right, right-clicking the DecoderPro tab to select "Run with jmri defaults".

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.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)


Locked Re: Win98 scrolling fix with JRE1.3.1

 

Well I was going to say I didn't accomplish a thing today, but in the course
of working with JBuilder I found that the following option fixed a vertical
scrolling problem I was having using JRE 1.3.1. (The vertical scrolling
problem disappeared with JRE 1.4.0, but I rolled back the java version while
trying to get JBuilder to work.) Anyway, just adding the following text in
the middle of the command line contained in the .bat file did the trick:

-Dsun.java2d.noddraw

The notes say this will work on many Win95 and Win98 systems, so if you see
a problem while vertical scrolling a combo box in DecoderPro, give it a try.
Does this cause any problem if it's present in JRE1.4.0? If not, I can just add it to the startup scripts in the installer.

Bob

--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)


Locked Win98 scrolling fix with JRE1.3.1

Robin Becker
 

Well I was going to say I didn't accomplish a thing today, but in the course
of working with JBuilder I found that the following option fixed a vertical
scrolling problem I was having using JRE 1.3.1. (The vertical scrolling
problem disappeared with JRE 1.4.0, but I rolled back the java version while
trying to get JBuilder to work.) Anyway, just adding the following text in
the middle of the command line contained in the .bat file did the trick:

-Dsun.java2d.noddraw

The notes say this will work on many Win95 and Win98 systems, so if you see
a problem while vertical scrolling a combo box in DecoderPro, give it a try.

Robin


Locked Re: Need help compilling and running JMRI

Alex Shepherd
 

I downloaded JB7 personal edition yesterday. The tools seem pretty nice.
I will download it and give this a go on the week end...

My experience is with Visual Studio
Ah-hugh, that explains everything!!! You will need to go on an extensive
detox course... :-)

Seriously, if you can work with Visual Studio and the other MS tools, you
will hopefully eat this stuff, once you are over the initial learning
hurdle.

Main problem for me is I don't know the language and structure so
every little problem becomes a pain.
This will change. Now that I can use the tools, I think Java is way simpler
than C or even Delphi. Every now and again you miss something but when
Generics arrive in Java 1,5 hopefully we won't miss a thing... However I
have not had much exposure to Swing so I may have to take this comment
back...

Alex


Locked Re: Need help compilling and running JMRI

Robin Becker
 


What version of JBuilder are you (and others) trying to use?
Hopefully I can
download it and have another go. Last one I tried was JBuilder 5 Personal
and it worked but was a real pain in some ways when you are used to using
Professional or Enterprise. Guess that is no surprise.
I downloaded JB7 personal edition yesterday. The tools seem pretty nice.
My experience is with Visual Studio, but I found it pretty easy to get going
in JB. Main problem for me is I don't know the language and structure so
every little problem becomes a pain.


Did manage to figure out that I didn't download the full Java 1.4.0 SDK last
time when I though I did. So I guess that explains the missing rmic.exe.

Robin


Locked Re: Need help compilling and running JMRI

Alex Shepherd
 

I can't find any option like that under the Project Properties.
All the version differenences are a bit of a blur to me now but I do know
that way back when I suggested to Bob that he try JBuilder, I was about to
download JMRI, rearrange it, get it to compile and it all worked. That was
before the resources issue and RMI but if we are lucky, this should all
still be possible.

I uncommented this line and the scrolling problem went away!
Good that you spotted this - Bill's OS strikes again...

This is way out of my depth. It seemed like I got pretty close to having
things running under JBuilder - was able to set breakpoints, examine
variables, etc. The build using jdk 1.3 that comes with JBuilder seemed
to
go ok based on the date/time stamps I see on the files in the class
directory. Still having some problems with loading and storing panels
though.
What version of JBuilder are you (and others) trying to use? Hopefully I can
download it and have another go. Last one I tried was JBuilder 5 Personal
and it worked but was a real pain in some ways when you are used to using
Professional or Enterprise. Guess that is no surprise.

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...

I actually use JB 4 Enterprise at home. We have JB 7 at work and the new
licensing is tied to the user not the PC, which officially allows it to be
installed on all the computers that the user uses, so I need to get it going
at home and upgrade from 4 to 7

Alex


Locked Re: Need help compilling and running JMRI

Robin Becker
 

Alex,

Thank you for the response.



Opened JBuilder. Went to Tools/Configure JDKs and changed java
from 1.3.1
which came with JBuilder to 1.4.0_01 which I had previously installed on
this PC. Same result - "Could not find main class".
I suggest you go to the project properties and define this class to be the
main class so that when you click the green triange in the tool
bar it knows
what to run and hopefully works out the dependancies
I can't find any option like that under the Project Properties.


A side issue - JBuilder seems to be using Java 1.3.1 internally, as some
video display problems in DecoderPro that were cleared up when I went to
Java 1.4.0 are present in JBuilder (screwed up text when using vertical
scrollbar). Is there a way to tell JBuilder to use Java 1.4.0?
The version of Java that JBuilder uses to run itself is defined
in a *.conf
file in c:&#92;JBuilder&#92;bin depending on what version you have while
the version
of Java that is used to run the application is defined in the project
properties. They can be different
Ok I found the config files. From your other comments it sounds like the
JRE 1.4.0 might not have all the files that are needed by JBuilder though.
However, I did find the following in the jdk.config file:

# +-----------------------------------------------------+
# | |
# | Uncomment the following line if you are seeing |
# | screen glitches while running JBuilder. This |
# | problem is especially common under Windows 95/98. |
# | |
# +-----------------------------------------------------+
#vmparam -Dsun.java2d.noddraw


I uncommented this line and the scrolling problem went away!



==============================
There was no resources entry in the upper-left page. I did an "Add
files/packages", selected "packages" and added the resources package and
program now runs. Thanks Bob! From JMRIDemo I can open DecoderPro,
select devices, etc.
Maybe JBuilder Personal expects the resource definition to also be in the
home directory along with the library definitions
It's funny. Here's what I observed, excerpted from another email:

2. Use Project / Add Files - Packages to add "resources" as a package to the
project.
3. The JBuilder Project Pane shows a complete directory tree under
resources - icons/smallschematics/...
4. Explorer shows that there is no resource folder under java/classes.
5. Ran JMRIDemo - app now opens. Panels/New Panel produces image errors.
6. Explorer shows that there is a resource folder under java/classes. There
are two entries - logo.gif and decoderpro.gif, but no folders underneath.
Note there is a resource folder under java/src and also one at the top level
of the project, and both of these have the resource directory tree -
icons/smallschematics/...
7. Copied the resource directory tree to java/class/resources.
8. Ran JMRIDemo - app finds the icons and Panels/New Panel opens ok.


We maybe able to create separate project files one for each of the main
programs ie JMRIDemo, DecoderPro etc to work around the JBuilder Personal
limitations

I'll have to download a JBuilder Personal edition and have a play around.
This is way out of my depth. It seemed like I got pretty close to having
things running under JBuilder - was able to set breakpoints, examine
variables, etc. The build using jdk 1.3 that comes with JBuilder seemed to
go ok based on the date/time stamps I see on the files in the class
directory. Still having some problems with loading and storing panels
though.

Robin