Open start, run cmd, enter DOS interface.
Or use the shortcut key win +r, enter cmd, press ENTER to enter the DOS interface
2. Run Java, and Javac, to detect if the JDK is configured, and if it is not configured, you need to configure the JDK first.
3. Create a new folder, under Folders, create a new text document to. Java as a file format, select Open with Notepad and open it.
4. After opening with notepad++, edit the Java source program and save it after editing is complete.
5. In DOS run Javac drag the desktop Java program to the Javac command and generate the. class file on the desktop. Note: Enter Javac (space) to drag into the Java program file path
6. Use the command statement to move the current directory, jump to the new folder, run the Java command under DOS, and output the Java program results.
Enter command cd/d (new file path)