· Frequently Asked Questions -1: Tips "javac is not an internal or external command ......"
Figure 1-22 Common Errors -1
Error reason: Path variable configuration errors did not find javac command
Solution: Reference 1.4.2 <Path environment variable configuration>, carefully re-set Path, need to re-enter the configuration is complete cmd to open a command line window.
· FAQ -2: Folders can see Welcome.java files appear at compile time 'javac file not found ......'
Figure 1-23 common error -2
Wrong reasons: the operating system might display problem set, hide file extensions.
Solution: Open the My Computer window, select the [organization] [Folder and Search Options] [View], shown in Figure 1-24, remove the "Hide extensions for known file types in the folder" checkbox on hook, see the actual name of the file to Welcome.java.txt, will remove the .txt extension.
win7:
win8+10:
Figure 1-24 FAQ -2 Solutions
· FAQ -3: NoSuchMethodError: main
Error reason: the main method can not be found, should be the main method of writing is wrong.
Solution: Check public static void main (String [] args) {} is wrong.