我从bitbucket下载(拉)我的项目的更新代码,然后当我尝试导出Runnable JAR文件时,我收到以下错误。我尝试根据这些页面1 2和3来解决我的问题。但是,我找不到任何解决方案。
我想在服务器上运行我的代码,以便如何解决这个问题?
我不知道如何找到LICENSE.txt文件和其他复制文件的重复。
JAR creation failed. See details for additional information.
Exported with compile warnings: Indexing/src/definedObjTypes/TypePosting.java
Exported with compile warnings: Indexing/src/input/ConvertTypeIndexToSequence.java
Class files on classpath not found or not accessible for: 'Indexing/src/input/TestInput.java'
Exported with compile warnings: Indexing/src/input/MainInput.java
Exported with compile warnings: Indexing/src/logicLayer/TreapMain.java
Exported with compile warnings: Indexing/src/logicLayer/TestQueryProcess.java
Exported with compile warnings: Indexing/src/logicLayer/EntityIndex.java
Exported with compile warnings: Indexing/src/logicLayer/WaveletTreeMain.java
Exported with compile warnings: Indexing/src/logicLayer/QueryProcess.java
Exported with compile warnings: Indexing/src/logicLayer/ReCreatePostingList.java
Exported with compile warnings: Indexing/src/logicLayer/Main.java
Exported with compile warnings: Indexing/src/logicLayer/TestSearchResult.java
Exported with compile warnings: Indexing/src/waveletTree/WaveletTreeUtilities.java
Exported with compile warnings: Indexing/src/waveletTree/WaveletTreeSeq.java
Exported with compile warnings: Indexing/src/waveletTree/Mapper.java
Exported with compile warnings: Indexing/src/waveletTree/Main.java
Exported with compile warnings: Indexing/src/waveletTree/WaveletTree.java
Exported with compile warnings: Indexing/src/waveletTree/WTNode.java
duplicate entry: about.html
duplicate entry: about.html
duplicate entry: plugin.properties
duplicate entry: plugin.properties
当我选择包所需的库到生成的JAR 而不是将所需的文件提取到生成的JAR 时,所有重复的条目错误都消失了但我还有其他错误。
答案 0 :(得分:1)
尤里卡!我懂了。
您(可能)您的存储库中有一个损坏的文件。您需要检查TestInput.java文件中的“类型声明”,其中包含:
import java.[blah]
public class MyJavaClass
{
// class code
并确保java文件没有丢失或格式错误的类型声明:
import java.[blah]
// I accidentally deleted my type declaration here
{
// class code
如果您这样做,您将无法导出任何内容。 Eclipse可能正在查找包含类型声明的文件,以了解要编译的内容。删除它,但保留文件名的名称,并且位于源文件夹中,会使Eclipse感到困惑。