Java的Apache的米纳FTP服务器导入库 [英] Java Apache Mina FTP Server import libraries

查看:273
本文介绍了Java的Apache的米纳FTP服务器导入库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要与Apache米娜FTP服务器创建一个Android的FTP服务器应用程序。

I want to create an Android FTP Server App with the Apache Mina FTP Server.

问题如下:我无法导入这些库

The problem is the following: I can't import these libraries.

我可以两个错误之间进行选择:

I can select between two errors:

如果在Java构建路径/订单和出口没有被选中的库,我得到这个错误:

If the libs aren't selected in "Java Build Path"/"Order and Export", I get this error:

"Could not find class 'org.apache.ftpserver.FtpServerFactory' (...)" 

(Logcat)

如果被选中,我得到这个错误:

If they are selected, I get this error:

Conversion to Dalvik format failed: 
Unable to execute dex: 
Multiple dex files define Lorg/apache/ftpserver/ftplet/FtpException;

(Problems / Errors)

什么是错的?

我导入的库:


  • ftplet-API-1.0.6.jar

  • FTPServer的核心-1.0.6.jar

  • Mina的核心2.0.4.jar(或2.0.7)

  • SLF4J-API-1.5.2.jar(或1.6.6)

  • SLF4J-简单1.5.3.jar

推荐答案

问题是与SLF4J-API 1.5和SLF4J简单的-1.5尽量保持两个完全相同版本的文件,而且版本应该是与Apache兼容FTPServer的核心罐子。

The problem is with slf4j-api-1.5 and Slf4j-simple-1.5 try to keep both the file of exactly same version and that version should be compatible with Apache FTPserver core jar.

这篇关于Java的Apache的米纳FTP服务器导入库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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