Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/368.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 运行FTPClient listFiles方法时崩溃_Java_Ant_Ftp - Fatal编程技术网

Java 运行FTPClient listFiles方法时崩溃

Java 运行FTPClient listFiles方法时崩溃,java,ant,ftp,Java,Ant,Ftp,当我尝试在Java程序(已连接到服务器)中运行方法listFiles时,它突然崩溃,我在netbeans中遇到的错误是: 运行: 线程“AWT-EventQueue-0”java.lang中出现异常。错误:未解决的编译问题: The import org.apache.oro cannot be resolved The import org.apache.oro cannot be resolved The import org.apache.oro cannot be resolved Th

当我尝试在Java程序(已连接到服务器)中运行方法listFiles时,它突然崩溃,我在netbeans中遇到的错误是:

运行: 线程“AWT-EventQueue-0”java.lang中出现异常。错误:未解决的编译问题:

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 无法解析导入org.apache.oro 无法解析导入org.apache.oro 无法解析导入org.apache.oro 无法解析导入org.apache.oro 无法解析导入org.apache.oro 无法将模式解析为类型 无法将MatchResult解析为类型 PatternMatcher无法解析为类型 _无法解析匹配器 Perl5Matcher无法解析为类型 模式无法解析 PERL5编译器无法解析为类型 无法将格式错误的PatterneException解析为类型 结果无法解析或不是字段 _无法解析匹配器 模式无法解析或不是字段 结果无法解析或不是字段 _无法解析匹配器 结果无法解析或不是字段 结果无法解析或不是字段 结果无法解析或不是字段 结果无法解析或不是字段 结果无法解析或不是字段 结果无法解析或不是字段 结果无法解析或不是字段 位于org.apache.commons.net.ftp.parser.regexftpfilentryparserimpl.(regexftpfilentryparserimpl.java:19) 位于org.apache.commons.net.ftp.parser.configurableftpfilentryparserimpl.(configurableftpfilentryparserimpl.java:57) 。 .

但是它编译了。看起来,如果它没有找到org.apache.oro库,而我将它们添加到了项目中(jakarta-oro-2.0.8),但它一直在发生

有什么问题吗

提前感谢您的帮助,
巴勃罗。

我也有同样的问题。我能够用更新版本的commons net 3.3解决这个问题


丢弃旧版本的commons net应该可以解决这个问题。

欢迎使用StackOverflow!记住,这是一个问答网站,你对问题的回答应该是有效的答案。在你的情况下,考虑使用<代码>评论> /代码>或者在聊天室中,一旦你有足够的声誉。