首页 > 代码库 > IntelliJ IDEA在Make Project时报:未结束的字符串子面量、非法的表达示开始

IntelliJ IDEA在Make Project时报:未结束的字符串子面量、非法的表达示开始

IntelliJ IDEA在Make Project时提示了很多错误,什么未结束的字符串子面量、非法的表达示开始……

解决方法是修改File Encoding,修改方法:File > Setting > File Encoding,将IDE Encoding和Project Encoding 都设置为UTF-8,如下图:





错误信息:

Error:(48, 48) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\web\ui\extjs\taglib\Tree.java:48: 未结束的字符串字面值
Error:(48, 82) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\web\ui\extjs\taglib\Tree.java:48: 需要 ‘;‘
Error:(75, 9) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\web\ui\extjs\taglib\Tree.java:75: 非法的表达式开始
Error:(75, 16) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\web\ui\extjs\taglib\Tree.java:75: 非法的表达式开始
Error:(75, 28) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\web\ui\extjs\taglib\Tree.java:75: 需要 ‘;‘
Error:(82, 2) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\web\ui\extjs\taglib\Tree.java:82: 进行语法解析时已到达文件结尾
F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\web\ui\extjs\taglib\extend\TimeRange.java
Error:(61, 80) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\web\ui\extjs\taglib\extend\TimeRange.java:61: 非法字符: \92
Error:(61, 82) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\web\ui\extjs\taglib\extend\TimeRange.java:61: 未结束的字符串字面值
Error:(61, 81) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\web\ui\extjs\taglib\extend\TimeRange.java:61: 不是语句
F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\excel\ExportDataToStream.java
Error:(39, 32) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\excel\ExportDataToStream.java:39: 未结束的字符串字面值
Error:(39, 51) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\excel\ExportDataToStream.java:39: 需要 ‘;‘
Error:(40, 20) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\excel\ExportDataToStream.java:40: 不是语句
Error:(126, 33) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\excel\ExportDataToStream.java:126: 未结束的字符串字面值

Error:(126, 57) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\excel\ExportDataToStream.java:126: 需要 ‘;‘
Error:(127, 20) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\excel\ExportDataToStream.java:127: 不是语句
Error:(162, 37) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\excel\ExportDataToStream.java:162: 未结束的字符串字面值
Error:(162, 61) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\excel\ExportDataToStream.java:162: 需要 ‘;‘
Error:(163, 24) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\excel\ExportDataToStream.java:163: 不是语句
Error:(198, 33) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\excel\ExportDataToStream.java:198: 未结束的字符串字面值
Error:(198, 57) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\excel\ExportDataToStream.java:198: 需要 ‘;‘
Error:(199, 20) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\excel\ExportDataToStream.java:199: 不是语句
Error:(234, 37) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\excel\ExportDataToStream.java:234: 未结束的字符串字面值
Error:(234, 61) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\excel\ExportDataToStream.java:234: 需要 ‘;‘
Error:(235, 24) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\excel\ExportDataToStream.java:235: 不是语句
F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java
Error:(15, 66) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:15: 未结束的字符串字面值
Error:(15, 71) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:15: 需要 ‘;‘
Error:(16, 29) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:16: 非法的表达式开始
Error:(16, 33) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:16: 需要 ‘;‘
Error:(16, 34) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:16: 不是语句
Error:(16, 35) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:16: 需要 ‘;‘
Error:(20, 66) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:20: 未结束的字符串字面值
Error:(20, 71) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:20: 需要 ‘;‘
Error:(21, 29) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:21: 非法的表达式开始
Error:(21, 33) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:21: 需要 ‘;‘
Error:(21, 34) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:21: 不是语句
Error:(21, 35) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:21: 需要 ‘;‘
Error:(47, 66) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:47: 未结束的字符串字面值
Error:(47, 71) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:47: 需要 ‘;‘
Error:(48, 29) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:48: 非法的表达式开始
Error:(48, 33) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:48: 需要 ‘;‘
Error:(48, 34) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:48: 不是语句
Error:(48, 35) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:48: 需要 ‘;‘
Error:(52, 66) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:52: 未结束的字符串字面值
Error:(52, 71) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:52: 需要 ‘;‘
Error:(53, 29) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:53: 非法的表达式开始
Error:(53, 33) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:53: 需要 ‘;‘
Error:(53, 34) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:53: 不是语句
Error:(53, 35) java: F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\vo\DataConstant.java:53: 需要 ‘;‘
F:\wkspaces\pro_nsomp\trunk\nsomp-base\src\com\foresee\fw\basic\util\stringoper\CNStringSpellUtil.java

IntelliJ IDEA在Make Project时报:未结束的字符串子面量、非法的表达示开始