Using command prompt to run Java a program
Practices Overview
In these practices, you run a Java program, first using the DOS command line and then from the
NetBeans integrated development environment (IDE).
The practices for this course assume that the following software is installed:
• JDK 1.7.0
• Java API Specification (installed locally)
• Java SE7 Specification (installed locally)
• NetBeans EE Edition, 7.0.1 (GlassFish server only; Tomcat server is not used.)
In this practice, you compile and run a Java program at the command line. A Java technology
program is already created for you. In some cases, you may need to first set the PATH variable
for the DOS session before running the program. Instructions for setting the PATH are included
below.