Problem: javac reports error wakeonlan. Java: 19: error: unmapped character encoding GBK
Reason: the default code of windows is GBK, while the code of java file is UTF-8
resolvent:
Open the java file with UltraEdit and check the code displayed on the status bar in the lower right corner. Here, confirm that it is UTF-8. Or copy the java file into eclipse, right-click and select properties to view its encoding
If you confirm that the file code is UTF-8, add the coding parameter during javac compilation:
javac -encoding UTF-8 WakeOnLan.java
Similar Posts:
- Eclipse C/C++ Error: launch failed,binary not found
- [Solved] Java compilation error: unmapped character encoding GBK
- Python Error: Non-UTF-8 code starting with ‘\xe7’ [How to Solve]
- The jar file rt.jar has no source attachment appears in eclipse
- [Solved] Pandas Parses MovieLens 1M Dataset Error: UnicodeDecodeError
- [Solved] IDEA Maven Package Error: [ERROR] javac options source files
- New Maven project — pom.xml error [How to Solve]
- [Solved] GeoTools GeoServer startup Error: java.lang.NoSuchMethodError: com.sun.tools.javac.util.JavacMessages.add
- Python learning notes – Import utils error
- MQ Startup Error: ERROR: Please set the JAVA_HOME variable in your environment, We need java(x64)! !!