当我尝试在我的Java程序中运行方法listFiles(已经连接到服务器)时,它突然崩溃,我接下来会遇到netbeans中的错误:
生成: 线程中的异常" AWT-EventQueue-0" java.lang.Error:未解决的编译问题:
The import org.apache.oro cannot be resolved
The import org.apache.oro cannot be resolved
The import org.apache.oro cannot be resolved
The import org.apache.oro cannot be resolved
The import org.apache.oro cannot be resolved
The import org.apache.oro cannot be resolved
Pattern cannot be resolved to a type
MatchResult cannot be resolved to a type
PatternMatcher cannot be resolved to a type
_matcher_ cannot be resolved
Perl5Matcher cannot be resolved to a type
pattern cannot be resolved
Perl5Compiler cannot be resolved to a type
MalformedPatternException cannot be resolved to a type
result cannot be resolved or is not a field
_matcher_ cannot be resolved
pattern cannot be resolved or is not a field
result cannot be resolved or is not a field
_matcher_ cannot be resolved
result cannot be resolved or is not a field
result cannot be resolved or is not a field
result cannot be resolved or is not a field
result cannot be resolved or is not a field
result cannot be resolved or is not a field
result cannot be resolved or is not a field
result cannot be resolved or is not a field
at org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl.<init>(RegexFTPFileEntryParserImpl.java:19)
at org.apache.commons.net.ftp.parser.ConfigurableFTPFileEntryParserImpl.<init>(ConfigurableFTPFileEntryParserImpl.java:57)
。 。
但它汇编了。它看起来好像是没有找到org.apache.oro库并且我将它们添加到项目中(jakarta-oro-2.0.8),但它一直在发生。
关于可能出现什么问题的任何想法?
先谢谢你的帮助, 巴勃罗。
答案 0 :(得分:0)
我遇到了同样的问题。我能够使用较新版本的commons-net 3.3
来解决这个问题丢弃较旧版本的commons-net应解决此问题。