Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- Jmriusers
- Messages
Search
Locked
Re: Need help compilling and running JMRI
Robin Becker
Uncaught error fetching image:
java.lang.NullPointerException at sun.awt.image.URLImageSource.getConnection(Unknown Source) at sun.awt.image.URLImageSource.getDecoder(Unknown Source) at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source) at sun.awt.image.ImageFetcher.fetchloop(Unknown Source) at sun.awt.image.ImageFetcher.run(Unknown Source) Found that the line creating the errors is: pane1.add(new JLabel(new ImageIcon(ClassLoader.getSystemResource("resources/logo.gif"),"Decoder Pro label"), JLabel.LEFT)); How do I determine and/or set the search path that is used in the statement above? FYI the project working directory is set to: C:/ModelRR/DecoderPro/jmri And the file C:/ModelRR/DecoderPro/jmri/resources/logo.gif exists. Thanks. Robin |
Locked
Need help compilling and running JMRI
Robin Becker
Having a little trouble getting JBuilder to run under Win98 and thought my
toggle quoted message
Show quoted text
experiences might be of some interest. (Please bear with me if some of the terminology is off - I don't really know anything about this stuff!) Got JBuilder and WinCVS installed. Created a project folder, and used WinCVS to checkout the project. Loaded the project in JBuilder, tried to run by selecting an app such as DecoderPro.java, right-clicked on the DecoderPro tab and selecting "Run using defaults" and got lots of errors during the compile. Tried the approach suggested below, compile errors went away but now get "Could not find the main class. Program will exit" msg from the Java Virtual Machine Launcher. Undid the approach suggested below. Went to Tools/Configure Libraries, found a JMRILibraries entry with no files. Added the 7 jmri lib files to JMRILibraries and the App compiles without errors but still generates "Could not find main class" error. Closed JBuilder. Tried to run installed version of JMRIDemo and found it would no longer run. I was using Java 1.4.0_01 and it turned out that the JBuilder install changed the Windows Registry entry back to 1.3.1. Reinstalled Java 1.4.0 and JMRIDemo runs fine. 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". Right-clicked on the DecoderPro tab and selected "Make DecoderPro.java" and got "build succeeded with 12 files built" Now tried "Run using defaults" and no errors, tab at the bottom shows a green arrow next to DecoderPro and a red Reset button above it. However nothing further happens (no screen display from the app). Stopped DecoderPro and selected JMRIDemo.java. Tried "Run", got "Could not find main" error. Did a "Make" and then "Run", and the Hexfile window opens on the screen but nothing further happens. Discovered that there was a message area in JBuilder, but the default height was so small that nothing showed up. I expanded this area and discovered the following error: Uncaught error fetching image: java.lang.NullPointerException at sun.awt.image.URLImageSource.getConnection(Unknown Source) at sun.awt.image.URLImageSource.getDecoder(Unknown Source) at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source) at sun.awt.image.ImageFetcher.fetchloop(Unknown Source) at sun.awt.image.ImageFetcher.run(Unknown Source) Went back and retried DecoderPro.java and saw that the same error messages occured. So at least this is progress :-) Appreciate any help on what I should try next. 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? Thanks. Robin Becker Tucson, AZ -----Original Message-----
From: sixth_rule [mailto:sixth_rule@...] Sent: Tuesday, August 13, 2002 10:29 AM To: jmriusers@... Subject: [jmriusers] Re: Compilling and running JMRI I actually got it to compile strait up i went into Tools Configure JDK's and added in the 7 .jar files from the library |
Locked
CV 7 values
Michael Mosher
I've added some entries intothe CV7 database, but while comparing to other
entries, some Digitrax values appear suspect. I got the data from saved PR1 DOS files, which were probably read using paged mode and it appears soem Digitrax decoders don't reprot the correct value in paged, so I will re read those ones using physical, but that won't happen 'til mid next week at the earliest. Michael Mosher Webmaster Daylight Division PCR/NMRA www.trainweb.org/daylight Golden Empire Historical & Modeling Society www.trainweb.org/gehams San Luis Obispo Model Railroad Club www.trainweb.org/slomrc Personal Member Kern County Live Steamers www.trainweb.org/kernctyls |
Locked
K i got Cvs to work but now JMRIDemo won't or Decoder Pro Won't Run
sixth_rule
I did get LocoTools to run but whenever i try to run JMRIDemo i get
the following message at the bottom of the screen C:\JBUILDER7\JDK1.3.1\bin\javaw -classpath "C:\jb1.0.3 \java\classes;C:\JBuilder7\lib\junit.jar;C:\JBuilder7 \lib\unittest.jar;C:\JBUILDER7\JDK1.3.1 \demo\jfc\Java2D\Java2Demo.jar;C:\JBUILDER7\JDK1.3.1 \jre\lib\i18n.jar;C:\JBUILDER7\JDK1.3.1\jre\lib\jaws.jar;C:\JBUILDER7 \JDK1.3.1\jre\lib\rt.jar;C:\JBUILDER7\JDK1.3.1 \jre\lib\sunrsasign.jar;C:\JBUILDER7\JDK1.3.1\lib\dt.jar;C:\JBUILDER7 \JDK1.3.1\lib\htmlconverter.jar;C:\JBUILDER7\JDK1.3.1 \lib\tools.jar;C:\jb1.0.3\lib\collections.jar;C:\jb1.0.3 \lib\comm.jar;C:\jb1.0.3\lib\crimson.jar;C:\jb1.0.3\lib\jdom- jdk11.jar;C:\jb1.0.3\lib\junit.jar;C:\jb1.0.3\lib\log4j.jar;C:\jb1.0.3 \lib\Serialio.jar" apps.JmriDemo.JMRIdemo java.lang.NoClassDefFoundError: apps/JmriDemo/JMRIdemo Exception in thread "main" also i have a huge amount of errors on the left side of the screen Stuff like JMRIDemoConfigAction not found in class JMRIDemo.JMRIDemo at line 35, 38, & 41 and 39 other errors that look like Cannot Acceses class jmri.jmrix.loconet.hexfile.LnHexFileAction; file jmri.jmrix.loconet.hexfile.LnHexFileAction not found at line 53 all but two of the errors involve files called somthingAction 2 of them involve somthingmenu was i supposed to set a class path for this whole thing?? |
Locked
Re: DecoderPro / Digitrax DN146A decoder
Mr_Mike_M
--- In jmriusers@y..., Bob Jacobsen <Bob_Jacobsen@l...> wrote:
At 9:25 AM -0400 8/13/02, Maloney, Michael wrote:It knowsAll- 105.it's Digitrax, but doesn't know the version, which from CV8(?) is for the FX and get somelighting. However, I was able to choose one of the FX decoders recognize it viaof the FX lighting to work. where isIDENT? the "Lights"that info)?Have you got the 1.0.3 version of the program? It seems to show FX pane. Note that you've got to be using the "Comprehensive"now, as nobody had even mentioned seeing a 105 there. I've changed thereliable.
|
Locked
Re: DecoderPro / Digitrax DN146A decoder
Mr_Mike_M
Bob-
I have the basic 1.0 release from SourceForge, downloaded about a week ago. I noticed the the 1.0.4 test version loaded on a different PC has the proper settings, so I just d/l'ed it to the layout's PC. Strange about the version "105" on the DN146. I wonder how long the dealer had this one in stock!! regards, Mike M. Have you got the 1.0.3 version of the program? It seems to show FXthe "Lights" pane. Note that you've got to be using the "Comprehensive"now, as nobody had even mentioned seeing a 105 there. I've changed thereliable.
|
Locked
Re: Decorder pro
Michael Mosher
Winzip files can be created to span floppy disks, just use it to zip the
toggle quoted message
Show quoted text
downloaded files across multiple disks. The Java runtime is vary large, over 9 meg. Some version of Windows have a option called direct cable connection, that uses a special serial or parallel cable to transfer files between computers, but I never used it. Michael Mosher Webmaster Daylight Division PCR/NMRA www.trainweb.org/daylight Golden Empire Historical & Modeling Society www.trainweb.org/gehams San Luis Obispo Model Railroad Club www.trainweb.org/slomrc Personal Member Kern County Live Steamers www.trainweb.org/kernctyls ----- Original Message -----
From: "nhn1758" <wendellcamp@...> To: <jmriusers@...> Sent: August 13, 2002 03:37 PM Subject: [jmriusers] Decorder pro I want to down load decoder pro . can I down load to floppy dis so I |
Locked
Re: Racetrack
Mark Gurries
I agree that this would be useful.
It is true that a closed loop interface with the loco would be the best solution. But I bet most people will not take the time to do anything that complicated. I expect most people would simply mark two points on the layout with a known distance and time it. Hence I would go with the easiest approach and let the user determine how to make the speed measurement. In the programs most basic form, the user enters the known test track length. At most it would provide a timer function where the user hits a key to stop and start the timer and which time when it stops, the speed is calculated. But I propose something more MANUAL but elegant from a user point of view. Here is how I think the program should work from this point of view. (Clearly other more Automatic operation modes could be supported at the same time.) PROGRAM OPERATION: The program starts and a user enters a locomotive address to be tested. Speed is set to zero and user is instructed to place the locomotive on the test section. Clinking that window away, the locomotive database is called up and a pane pops up showing the current speed steps along with Kick, Start, Mid and Max values. The user is then told that the Acceleration and Deceleration CV will be set to Zero and restored when all the test are done. (this may be presented as a choice to the user with a note as to why) The user is then presented with two mode of operations. Continuous loop running or back and forth. (more on that later). If not save in a preference file, the user is also asked for a the distance between the two start and stop points of the test section. If it is a loop, you could also provide a calculator for the length in the program. Obviously the longer and straighter the test section, the more accurate the measurement. But in most cases, people are more interested matching the locomotive relative speeds as opposed to making a speed step match an accurate scale speed. Anyway.... The user is then given the choice of setting one of the following test: 1) KICK, START V, 1st SPEED TABLE setting 2) START V, MID V, MAX V 3) SPEED TABLE. The program then opens to a panel with a manual throttle and the appropriate variables shown. =========== TEST #1 (KICK) This test should be run first for it can effect the results for Start Voltage or the lowest speed steps in the Speed Table. The window open and presents the START V and the first Speed Step of the Speed table. (The user need to make sure the track is clean!) The user must then choose START V or 1st Speed Table value to be set. The program then enables the value chosen by turning off or on the speed table setting. The test comes in two phases. First phase is Setting the Start Voltage or First Speed Table value. Second is setting the kick start value. The concept behind this test is to first establish the minimum speed that can be sustained coming down from a running position so that Kick start is NOT involved. Once the values for START V or 1st SPEED TABLE variable are determine, we go to Kick start phase. Here the kick start value is adjusted so that from a stopped position, the first throttle speed step setting gets the locomotive to run reliable at the value established by in the first phase. First Phase: The engine is placed on the test track behind a marked starting point. A) From a stop condition, the clicks on the START button which starts the test by starting the loco. The loco starts at a medium speed that is high enough to guarantee motion. A timer is started to prevent runaway. If the timer times out, we go to D step. B) The users Click the TEST button which then changes the the Speed Step to 1. The Countdown timer is re-started to prevent loco runaway if there is no response on the next step. C) The user is then asked to observe the locomotive and click one of two buttons labeled STALLED or MOVING on the screen. The locomotive is stopped when a button is pressed or the timer times out. If the MOVING button is pressed, we skip to step G If the time times out, we got to step H. STALL BUTTON IS PRESSED D) If the Stall Button is pressed, the user is asked to PRESS the VERIFY KEY. The VERIFY key sends a new speed step value that would guarantee the locomotive should move. A timer starts to prevent runaway again. E) The user is then asked if the locomotive started again. IF yes, then the STALL is verified because the CV value is to low as opposed to dirty track. Proceed to Step F below. IF no, then the test must be repeated by first fixing the locomotive via a note to the user and then proceeding to step H STALL VERIFIED F) If the stall is verified, the CV value is reset to the PREVIOUS value which we knew the Loco DID NOT stall at. The system then restores the Accel and Deceleration CV's. The user is told the Test Phase 1 is complete. Goto step H. MOVING BUTTON IS PRESSED. G) If the moving button is pressed, then the CV value is lowered in preparation for the next test. RESET TEST H) The user then holds down a key which reverses the engine back to the starting point again. Releasing the key stop the engine. IF the test is NOT COMPLETE we Goto Step A. ELSE we exit to second phase. ---------------- Second Phase: KICK START The kick start value is first set to 1. A) From a stop condition, the clicks on the START button which starts the test by setting the speed step to 1. A timer is started to prevent runaway. If the timer times out, we go to H step. B) The user is then asked to observe the locomotive and click one of two buttons labeled STALLED or MOVING on the screen. The locomotive is stopped when a button is pressed or the timer times out. If the MOVING button is pressed, we skip to step G. If the time times out, we got to step H. STALL BUTTON IS PRESSED D) If the Stall Button is pressed, the user is asked to PRESS the VERIFY KEY. The VERIFY key sends a new speed step value that would guarantee the locomotive should move. A timer starts to prevent runaway again. E) The user is then asked if the locomotive started again. IF yes, then the STALL is verified because the KICK START value is to low as opposed to dirty track. Proceed to Step F below. IF no, then the test must be repeated by first fixing the locomotive via a note to the user and then proceeding to step H STALL VERIFIED F) The KICK start value is too low and must be incremented by one and the test repeated. MOVING BUTTON IS PRESSED. G) If the MOVING is verified, the CV value is correct. The system then restores the Accel and Deceleration CV's. The user is told the TEST IS COMPLETED. Exit. RESET TEST H) The user then holds down a key which reverses the engine back to the starting point again. Releasing the key stop the engine. ===================== TEST #2 (STRT,MAX) and TEST#3 (SPDTBL) For Test #2 and #3 above, the user chooses which variable to be tested or adjusted. If TEST#1 was performed, the STATV and First Speed Step are locked out by default. The user is given the option of unlocking them. Also note that when the timer is running, the user is not allowed to adjust any values. Only stop is allowed. The program then proceeds to the test phase. Test Phase: As mention before, I see two operator modes of operations. LOOP and BACK AND FORTH The engine is placed on the test track at one end before the start mark. From a stop condition, the user Hits (pressing momentarily) the control key starts the test by starting the loco. 1) LOOP. The engine is place on a section of track in a form of a loop. A) The users hit the key again to start the timer when the loco passes the mark. B) When the loco passes the same mark after completing one pass around the loop, the key is hit again, the timer stops and the speed is calculated. However the engine continues running around the loop in preparation for the next test. During this lap, the user can change the CV value. C) Go to step A above. 2) BACK AND FORTH. This simply means that the engine is on a section of track that is not continuous. The engine must go back and forth to be tested. (This would work for loop too and might be faster!) Here is the procedure: A) The users hit the key again to start the timer when the loco passes the start mark. B) When the loco passes the stop mark, the key is hit again, the timer stops and the speed is calculated. At the same time the engines is also stopped. The user can change the CV value at this time. C) Press and HOLDING the key again allows the engine to move again in the same direction but at a slow speed to make sure it goes past the mark in preparation for a run in the opposite direction. D) Releasing the key stops the engine then changes direction and starts the engine again. E) Go to step A above. Pressing the key twice in a row in quick succession stops the test and restores the Accel and Deceleration CV's. A Display always tell the user what state the system is in a what to do next. The idea is to make as much of the control hands off as much as possible. So there it is....... Mark Gurries Michael Mosher wrote: I've been contemplating creating a program similar to Racetrak that talked Hi- Best Regards, Mark Gurries Linear Technology Power Supply & Battery charger Applications Engineer/Manager --------------------------------------------------------- Model Railroad Club and NMRA DCC presentations are at: -------------------------------------------------------- Audio Enthusiast (Love SAE equipment) ---------------------------------------------------------- |
Locked
Re: Decorder pro
I want to down load decoder pro . can I down load to floppy dis so I(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) |
Locked
Re: Decorder pro
At 10:37 PM +0000 8/13/02, nhn1758 wrote:
I want to down load decoder pro . can I down load to floppy dis so IDoes the laptop have Java already installed? That's a pretty big installer, and I don't know if its available in parts. The DecoderPro installer is just under 2MB. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) |
Locked
Re: CVS
At 10:18 PM +0000 8/13/02, sixth_rule wrote:
i downloaded wincvs went admin commandline and typed in this exactI think the \n (which might have been a newline or carriage return you typed in the window) is the problem. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) |
Locked
CVS
sixth_rule
i downloaded wincvs went admin commandline and typed in this exact
line cvs -d:pserver:anonymous@...:/cvsroot/jmri co jbuilder into and this is the result i get afetwards cvs -d:pserver:anonymous@...:/cvsroot/jmri co jbuilder \n \n (in directory C:\cvs) cvs server: cannot find module `jbuilder ' - ignored cvs [checkout aborted]: cannot expand modules CVS exited normally with code 1 and i get no code Chad Spickett 970636670 |
Locked
Re: Racetrack
Hi -
I thought it might look like the Speed Page, but doubled. I made a spoof of it at: Instructions: 1. load in a preexisting speed table for a loco, 2. start at lowest speed, run the two locos, adhust the speed of the following until it matches, 3. step to the next speed .... 4. Finally, write the values to the loco How should we handle updating the Roster entries? David Bob Jacobsen wrote: --We've taken a couple steps in that direction. In the most recent David Harris OmniPort Home Page: Discussion egroup: Swiki: |
Locked
Re: Racetrack
We've taken a couple steps in that direction. In the most recent download, there's a "Speedometer" tool that Roger Gleason and I have been working on. Given some LocoNet-readable sensors (e.g. block occupancy detector, a button you push or whatever), you specify how far apart they are in scale feet, and then it starts reporting the scale MPH whenever it sees activity. It seems to work OK, with acceptable accuracy as long as you're timing over a few seconds of travel (e.g. not too short a distance). It would require a little work to hook that code into the programming part. I'd be happy to help somebody do it, but don't really have the opportunity to spend time on it right now. It will require some thought to figure out what values go where, etc. If I set up the basics, e.g. an example that would load one CV with a value, perhaps somebody else would be willing to handle the rest of the details? Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) |
Locked
Re: Racetrack
Michael Mosher
I've been contemplating creating a program similar to Racetrak that talked
toggle quoted message
Show quoted text
through a MS100 or LocoBuffer to the command station instead of driving a booster directly. That would be much more convenient to me and for the club. Also since the club has a Toth speedometer, I was think of making a option to use the speedometer in place of the master loco. i.e.: "For speed step xx (CV yy) adjust the speed of test loco until the speedometer reads zz" But since I don't know java, I would write it in C, probably using John's LN1 interface. I think the only tricky thing would be the option of filling in blank values using existing known values. Michael Mosher Webmaster Daylight Division PCR/NMRA www.trainweb.org/daylight Golden Empire Historical & Modeling Society www.trainweb.org/gehams San Luis Obispo Model Railroad Club www.trainweb.org/slomrc Personal Member Kern County Live Steamers www.trainweb.org/kernctyls ----- Original Message -----
From: "David Harris" <dpharris@...> To: "jmri" <jmriusers@...> Cc: "John E. Kabat Jr." <sljkrr@...> Sent: August 13, 2002 09:53 AM Subject: [jmriusers] Racetrack Hi- |
Locked
Re: Compilling and running JMRI
sixth_rule
I actually got it to compile strait up
i went into Tools Configure JDK's and added in the 7 .jar files from the library 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 |
Locked
Racetrack
Hi-
My oNeTrak club now has its act together getting our modules finished and connected to the NTrak club's modules. We would now like to MU some engines together. (I in particular, as I just installed some decoders into three SD40-2s :-) However, getting two engines to perform similarly is harder than you would think. Fortunately, there is a program to help: Racetrack (see: ). I have asked John Kabat if he supported the DC100 or Locobuffer, but unfortunately, he is not supporting the program at this time. I think a Racetrack module would be great for JRMI. Before I start, has anyone done this or do any of you have some suggestions? David |
Locked
Re: Compilling and running JMRI
I downloaded a copy of JBuilder Personal Edition 7 to my son's PC last night, and have been working with it (I can only get to that machine while he's asleep, unfortunately).
The Personal Edition has a couple of limitations that I didn't know about. I think I understand some of them now, though there's still one that needs a workaround. I've also updated the page on compiling with some instructions on how to get and use CVS. _Please_ do that; this method of passing .zip files, etc, is just not reliable enough to be worth the time. So the steps I recommend are: Install CVS - for links, etc please see Check out a copy of the "jbuilder" module: create a "project folder" do the checkout (see the instructions at the link above) start jbuilder with the jmri.jpx file in the java folder you just created. There's one remaining problem, that I hope Alex or somebody can resolve. The personal version of JBuilder apparently gets confused if you have multiple programs to build. So you have to tell it which one to run: Using the file/folder tree at the upper left, navigate apps -> DecoderPro -> DecoderPro.java (or which ever app you want to run, e.g. JMRIdemo.java, LocoTools.java) Double click that file; it will open to the right. Right-click on the "DecoderPro" tab at the top of the right window. (Click would select this, right-click or control-click brings up a menu) From the pop-up menu, select "Run". This tells it that you want to build & run _that_ program, which it then does. All of the above works for me now. Hopefully it will work for you, and we can resolve the need for that last "click-click-right-click" workaround shortly. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) |
Locked
Re: DecoderPro / Digitrax DN146A decoder
At 9:25 AM -0400 8/13/02, Maloney, Michael wrote:
All-Have you got the 1.0.3 version of the program? It seems to show FX functions for the outputs of a DN146 decoder. They're on the "Lights" pane. Note that you've got to be using the "Comprehensive" programmer format to see these; the "Basic" one is too basic... To get it to recognize 105, edit that in as the "lowVersion" in the "decoderIndex.xml" file on the line for the DN146. It's only 106 now, as nobody had even mentioned seeing a 105 there. I've changed the file in CVS so this will work for everybody starting with the next release. And thanks for the version info. Bob Blackwell is trying to get a comprehensive set of that info so we can make the id process reliable. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) |
to navigate to use esc to dismiss