У меня есть проект Gradle в Eclipse (только для рабочего стола и ядра), и я пытаюсь экспортировать проект рабочего стола как исполняемый файл jar, но мне говорят, что при экспорте толстого файла jar не удалось найти запись пути к классу для"Fight of Fights-core / bin / default"
Я пытался найти ответы на тот же вопрос, но единственные вопросы, касающиеся экспорта жирных файлов Eclipse, относятся к случаям, когда в JARS отсутствуют записи пути к классам.Моя ситуация, однако, отличается (насколько мне известно), потому что в папке, содержащей ресурсы (папка «bin / default»), а не jar, отсутствует запись пути к классу.
Вот класспуть к ядру:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="bin/main" path="src">
<attributes>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>
А вот путь к классу для рабочего стола:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="bin/main" path="src">
<attributes>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="res"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry exported="true" kind="src" path="/Fight of Fights-core"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>
Вот ошибка (последняя строка - интересующая строка):
JAR export finished with warnings. See details for additional information.
Exported with compile warnings: Fight of Fights-core/src/com/fof/handlers/PowerUpManager.java
Exported with compile warnings: Fight of Fights-core/src/com/fof/handlers/ProjectileManager.java
Exported with compile warnings: Fight of Fights-core/src/com/fof/objects/Orb.java
Exported with compile warnings: Fight of Fights-core/src/com/fof/objects/StoryTileLine.java
Exported with compile warnings: Fight of Fights-core/src/com/fof/objects/Calculator.java
Exported with compile warnings: Fight of Fights-core/src/com/fof/states/BombFactoryArenaState.java
Exported with compile warnings: Fight of Fights-core/src/com/fof/states/MenuState.java
Jar export finished with problems. See details for additional information.
Fat Jar Export: Could not find class-path entry for 'Fight of Fights-core/bin/default'
Кстати, папка bin / default в базовом проекте содержит различные ресурсы (ни один из которых не является jars).