I compile the project successfully in Eclipse without any error.
But when I tried to compile it in IntelliJ, the following error shows:
I double-clicked the error message, it located into the first line of one Java class, which is the package definition line, and there's no compilation error in this class.
I tried to fix this by specifying the JDK, but it didn't work.
Anyone knows what's happening here?
Thanks RC. I saved my file with UTF-8 in Sublime, then it works.
This is what I did: Open the file with Sublime, File->Save with Encoding
, there will be UTF-8
and UTF-8 with DOM
, select the first one, then it compiled successfully in IntelliJ.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.