[ERROR] 1:13:missing ; before statement
META-INF/resources/resources/js/entry/Form.js
[ERROR] 1:0:Compilation produced 1 syntax errors.
org.mozilla.javascript.EvaluatorException: Compilation produced 1 syntax errors.
        at cn.encryption.Encryption$9.runtimeError(Encryption.java:339)
        at org.mozilla.javascript.Parser.parse(Parser.java:396)
        at org.mozilla.javascript.Parser.parse(Parser.java:340)
        at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:315)
        at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:536)
        at cn.encryption.Encryption.jarResources(Encryption.java:316)
        at cn.encryption.Encryption.access$7(Encryption.java:292)
        at cn.encryption.Encryption$8.widgetSelected(Encryption.java:242)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
        at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4175)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3988)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3587)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
        at org.eclipse.jface.window.Window.open(Window.java:799)
        at cn.encryption.Encryption.main(Encryption.java:405)

出错原因为:文件保存格式为“带有BOM的 UTF-8”;

解决方法为:重新把文件另存为“UTF-8”格式


注意:本文归作者所有,未经作者允许,不得转载