How to Run a NetBeans File in CMD
NetBeans is a free Integrated Development Environment (IDE) that is developed and distributed by NetBeans.org. This IDE, developed primarily for the Java programming language, provides programmers with a flexible tool that allows development and debugging of Java, PHP and C++ programs in one uniform environment, and reduces the time necessary to learn a new interface for each language. Running programs from within the IDE is as simple as clicking an icon. Launching a program under development from the command line requires letting the operating system know where to look for the files that would be included with a completed, compiled program.
Instructions
-
-
1
Set the system path to include the development folder. Open the command-line window by clicking the "Start" button. Type "cmd" in the text window, and press the "Enter" key.
-
2
Type "path %DevelopmentDirectory%," and press the "Enter" key to add the directory containing the necessary libraries in the operating system's standard search path. Replace "DevelopmentDirectory" with the name of the directory containing your library and command files.
-
-
3
Type the name of the program, and press the "Enter" key to run the program. For Java projects, type "java ProgramName" at the command prompt to start Java Virtual Machine (JVM) for program execution.
-
1
Resources
- Photo Credit Chad Baker/Ryan McVay/Photodisc/Getty Images