使用netbeans构建java应用程序时抛出的异常 [英] exception thrown while building the java application using netbeans

查看:158
本文介绍了使用netbeans构建java应用程序时抛出的异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

突然,在打开和构建应用程序时抛出了这个异常:

Suddenly, while opening and building the application this exception was thrown:

java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
    at java.util.Properties.loadConvert(Properties.java:552)
    at java.util.Properties.load0(Properties.java:374)
    at java.util.Properties.load(Properties.java:325)
    at org.netbeans.modules.java.source.indexing.FQN2Files.load(FQN2Files.java:112)
    at org.netbeans.modules.java.source.indexing.FQN2Files.<init>(FQN2Files.java:78)
    at org.netbeans.modules.java.source.indexing.FQN2Files.forRoot(FQN2Files.java:70)
    at org.netbeans.modules.java.source.indexing.JavaParsingContext.<init>(JavaParsingContext.java:110)
    at org.netbeans.modules.java.source.indexing.JavaCustomIndexer$2.run(JavaCustomIndexer.java:332)
    at org.netbeans.modules.java.source.indexing.JavaCustomIndexer$2.run(JavaCustomIndexer.java:328)
    at org.netbeans.modules.java.source.usages.ClassIndexManager.prepareWriteLock(ClassIndexManager.java:120)
    at org.netbeans.modules.java.source.indexing.JavaCustomIndexer.clearFiles(JavaCustomIndexer.java:328)
    at org.netbeans.modules.java.source.indexing.JavaCustomIndexer.access$600(JavaCustomIndexer.java:123)
    at org.netbeans.modules.java.source.indexing.JavaCustomIndexer$Factory.filesDeleted(JavaCustomIndexer.java:883)
    at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.delete(RepositoryUpdater.java:2063)
    at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.scanFiles(RepositoryUpdater.java:2502)
    at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$FileListWork.getDone(RepositoryUpdater.java:2796)
[catch] at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:2582)
    at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:4681)
    at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:4618)
    at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:618)
    at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:728)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)

我有搜索了这个错误的含义,但我无法理解解决方案。有些人可以快速帮助我,请让你的答案简单易懂。

I have searched the meaning of this error but I couldn't understand the solution. Could some body help me quickly and please to make your answer simple to follow.

推荐答案

通过谷歌,问题可能会出现问题是一条不正确的道路。如果您指定如下路径:

Via Google, it looks like the problem might be an improperly specified path. If you specify a path like this:

C:\Documents and Settings\jdoe

\ 字符可以解释为错误的unicode字符,如果符合以下条件性格是一个你。解决方案是以下之一:

The \ character can be interpreted as a bad unicode character, if the following character is a "u". The solution is one of the following:


  1. 远离 \ 与另一个 \ - 例如:

  1. Excape the \ with another \ - e.g.:

C:\\Documents and Settings \\\\\

改为使用 / 这可能是更好的解决方案,因为它适用于所有平台 - 而不仅仅是Windows - 例如:

Use / instead (this is probably the better solution, since it works on all platforms - not just Windows - e.g.:

C:/ Documents and设置/ jdoe

这篇关于使用netbeans构建java应用程序时抛出的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆