我正在处理一个 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>
我检查了其他项目,除了名称之外几乎相同。