[英]The import gwtupload cannot be resolved
I create sample application of gwtupload
. 我创建了gwtupload
示例应用程序。 https://code.google.com/p/gwtupload/ Its working fine with the .jar
I downloaded from project home. https://code.google.com/p/gwtupload/它与我从项目主页下载的.jar
正常工作。
But for my custom requirement I downloaded project from git
https://github.com/manolo/gwtupload and made changes as per my requirement and created .jar
file. 但是对于我的自定义要求,我从git
https://github.com/manolo/gwtupload下载了项目,并根据我的要求进行了更改并创建了.jar
文件。 Then I imported it to my project and included in classpath. 然后,将其导入到我的项目中并包含在classpath中。 Even eclipse is not giving any error in editor mode. 甚至eclipse在编辑器模式下也不会出错。 But when I debug and open URL its giving me following error. 但是,当我调试并打开URL时,出现以下错误。
[ERROR] [uploadtest] - Line 3: The import gwtupload cannot be resolved
[ERROR] [uploadtest] - Line 53: SingleUploader cannot be resolved to a type
[ERROR] [uploadtest] - Line 54: IUploader cannot be resolved to a type
Tried stackoverflow thread Eclipse error: "The import XXX cannot be resolved" but didn't help me out. 尝试了stackoverflow线程Eclipse错误:“无法解析导入XXX”,但没有帮助我。
Do I need to create .jar
file with other parameters than creating .jar
using Export in eclipse? 除了使用eclipse中的Export创建.jar
之外,是否还需要使用其他参数来创建.jar
文件?
You should export the .jar with "Java source files and resources". 您应该使用“ Java源文件和资源”导出.jar。
Gwtupload是一个maven项目,因此生成.jar的最简单方法是打开一个命令行会话,更改为gwt-upload / core文件夹并运行:
mvn clean package
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.