NB CppUnit and 2nd Executable

2020-10-08 Thread Rud Merriam
Hi, New to NB switching from Eclipse for better C++ refactoring. Have the C++ plugin working okay. I'm on Ubuntu Mate 18.02. *CppUnit:* Trying to use CppUnit for testing. Version installed with OS is cppunit 14.x. That version no longer has a cppunit_config which NB requires. Installing 13.

Re: Recognizing environment variable while running java app in NB 12.0

2020-10-08 Thread Som Lima
You can access environment variables using the brace-enclosed environment variable syntax. Example: VM options: -Dfoo=${MY_ENV_VAR} https://stackoverflow.com/questions/21558855/using-environment-variables-in-vm-options-and-program-arguments On Thu, 8 Oct 2020, 04:34 Greenberg, Gary, wrote:

Re: Recognizing environment variable while running java app in NB 12.0

2020-10-08 Thread Pete Whelpton
Hi Gary, System.getEnv() will return O/S environment variables. E.g. System.out.println("Path: " + System.getenv("PATH")); would print my current PATH variable. System.getProperty() is what you are thinking of. E.g. adding -Denv=dev to my VM options in Netbeans, then calling System.out.println("