Online said a lot of ways, just say I used the
Java Chinese garbled run cmd
Set environment variables - system environment variables
Add an entry: JAVA_TOOL_OPTIONS
value: -Dfile.encoding = UTF-8 -Duser.language = en
Unable to load the main class
- Remove package *
- If the test at src class catalog. After compiling, running in the same directory src
· · ·
the Java src.test
· · ·