Re: Netbeans Help

Bob M.
 

Steve,

In my experience, Netbeans' GIT support is full-featured, but DOES NOT work well in a "triangular" repository situation as is recommended in JMRI's GIT help.

What I saw was that Netbeans would _CHANGE_ the local repository's "remote" setting for "push" to match the setting for the "remote" "pull". This effectively bypassed the personal github repository.

Based on that experience, I have NOT done any "pull" or "push" operations from Netbeans - only from a separately-installed GIT command-line tool.

If I recall correctly, Github Desktop install has an option to include a linux-based terminal with git command line support. I do not remember the details. On my Win7Pro machine, I am currently using a GIT command line which was separate from the Github Desktop implementation. Unfortunately, I do not know where I got it...

FYI - it appears that Netbeans support for ANT is running in your Netbeans install, otherwise you would not have gotten the failure to find 'git' error you've shown.

I have not knowingly installed an ANT implementation.

I perform any JMRI build operations via right-clicking on the "build.xml" file and choosing the correct option, or via a pushbutton if simply running PanelPro or running a test of a single module.

This has served me well for many years, over I think Netbeans 6.x thru Netbeans 8.x.

When I press the "run" button, I get the following in the Netbeans "output" window. Note that there is a "cannot find git" message, but it does not stop the ant build!

ant -f "E:\\User Data\\NetBeans\\JMRI\\nbproject\\nbjdk.xml" panelpro
Warning: nbjdk.active=JDK_1.8 or nbjdk.home=${platforms.JDK_1.8.home} is an invalid Java platform; ignoring and using C:\Program Files\Java\jdk1.8.0_25
panelpro:
Execute failed: java.io.IOException: Cannot run program "git" (in directory "E:\User Data\NetBeans\JMRI"): CreateProcess error=2, The system cannot find the file specified
JMRI.init:
JMRI.copyfiles:
JMRI.jjtree:
JMRI.javacc:
JMRI.update-template-code:
Copying 1 file to E:\User Data\NetBeans\JMRI\java\tmp
JMRI.compile-generated-source:
Copying 1 file to E:\User Data\NetBeans\JMRI\target\classes\jmri
JMRI.compile:
JMRI.debug:
JMRI.panelpro:
Execute failed: java.io.IOException: Cannot run program "git" (in directory "E:\User Data\NetBeans\JMRI"): CreateProcess error=2, The system cannot find the file specified
JMRI.runtime-library-selection:
arch.lib.path E:\User Data\NetBeans\JMRI/lib/windows/x64:E:\User Data\NetBeans\JMRI/lib/windows
Launch normally (no debugger support)
2019-10-13 08:35:59,707 util.Log4JUtil INFO - ****** JMRI log ******* [main]
2019-10-13 08:35:59,723 util.Log4JUtil INFO - This log is appended to file: C:\Users\huzzah\JMRI\log\messages.log [main]
2019-10-13 08:35:59,723 util.Log4JUtil INFO - This log is stored in file: C:\Users\huzzah\JMRI\log\session.log [main]
2019-10-13 08:35:59,739 apps.Apps INFO - PanelPro version 4.17.5ish+huzzah+20191013T1235Z starts under Java 1.8.0_25 on Windows 7 amd64 v6.1 at Sun Oct 13 08:35:59 EDT 2019 [main]
2019-10-13 08:36:01,720 apps.Apps INFO - Starting with profile AGE3_sim.3f113c63 [main]
2019-10-13 08:36:02,110 node.NodeIdentity INFO - Using 54a13122-2e81-44c1-a2ae-3ecc16430ef7 as the JMRI storage identity for profile id 3f113c63 [AWT-EventQueue-0]
2019-10-13 08:36:02,437 xml.AbstractSerialConnectionConfigXml INFO - Starting to connect for "C/MRI" [main]
2019-10-13 08:36:03,093 util.FileUtilSupport INFO - File path program: is E:\User Data\NetBeans\JMRI\ [main]
2019-10-13 08:36:03,093 util.FileUtilSupport INFO - File path preference: is C:\Users\huzzah\JMRI\AGE3_sim.jmri\ [main]
2019-10-13 08:36:03,093 util.FileUtilSupport INFO - File path profile: is C:\Users\huzzah\JMRI\AGE3_sim.jmri\ [main]
2019-10-13 08:36:03,093 util.FileUtilSupport INFO - File path settings: is C:\Users\huzzah\JMRI\ [main]
2019-10-13 08:36:03,093 util.FileUtilSupport INFO - File path home: is C:\Users\huzzah\ [main]
2019-10-13 08:36:03,093 util.FileUtilSupport INFO - File path scripts: is C:\Users\huzzah\JMRI\AGE3_sim.jmri\jython\ [main]
2019-10-13 08:36:04,840 PanelPro.PanelPro INFO - Main initialization done [main]


I believe that the git version I am running is _not_ integrated into the operating system. This is likely the cause of the error. Luckily Netbeans (or JMRI's ant build mechanism?) has some way to get past the error.

Regards,
Billybob

Join jmri@jmri-developers.groups.io to automatically receive all group messages.