我正在研究一个J2ME项目而且无处不在,我刚开始收到这个错误。
我的语法在任何地方都是正确的,我之前没有遇到任何问题。
D:\Users\Ihato\NetBeansProjects\JavaMEGUI3\nbproject\build-impl.xml:6:
java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
at java.util.Properties.loadConvert(Properties.java:568)
at java.util.Properties.load0(Properties.java:390)
at java.util.Properties.load(Properties.java:341)
at org.apache.tools.ant.taskdefs.Property.loadProperties(Property.java:580)
at org.apache.tools.ant.taskdefs.Property.loadFile(Property.java:597)
at org.apache.tools.ant.taskdefs.Property.execute(Property.java:497)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:285)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
BUILD FAILED (total time: 0 seconds)
我已经尝试过搜索一些关于它的内容,但它的文档记录非常糟糕(谷歌上有5500个结果)
为什么会这样?
XML的前几行是:
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- *** GENERATED FROM project.xml - DO NOT EDIT *** -->
3 <project name="JavaMEGUI3-impl" default="jar" basedir="..">
4 <!--load-properties-->
5 <target name="pre-load-properties">
6 <property file="nbproject/private/private.properties"/>
7 <property name="user.properties.file" location="${netbeans.user}/build.properties"/>
8 <available property="user.properties.file.exists" file="${user.properties.file}"/>
9 </target>
我已经检查了其他项目,除了名称之外它几乎一样。