0

Ant スクリプトを使用して Eclipse プロジェクトを構築しようとしています。また、ant4eclipse を使用してプロジェクトをインポートします。.classpath ファイルから次のエントリを解決しようとするまでは正常に動作します。

…
    <classpathentry kind="con"path="at.bestsolution.efxclipse.tooling.jdt.core.JAVAFX_CONTAINER"/>
…

エラー:

BUILD FAILED
C:\Users\bob\.jenkins\jobs\BuildTest\workspace\trunk\build.xml:159: The following error occurred while executing this line:
C:\Users\bob\.jenkins\jobs\BuildTest\workspace\trunk\build.xml:70: org.ant4eclipse.lib.core.exception.Ant4EclipseException: Exception whilst resolving the classpath entry '[EclipseClasspathEntry: path: at.bestsolution.efxclipse.tooling.jdt.core.JAVAFX_CONTAINER entryKind: 0 outputLocation: null exported: false]' of project 'test123': '

No 'jdtClassPathLibrary' defined for library entry 'at.bestsolution.efxclipse.tooling.jdt.core.JAVAFX_CONTAINER'.
To resolve this problem, please define a 'jdtClassPathLibrary' element inside your ant build file:

<ant4eclipse:jdtClassPathLibrary name="at.bestsolution.efxclipse.tooling.jdt.core.JAVAFX_CONTAINER">
  <fileset dir="..."/>
</ant4eclipse:jdtClassPathLibrary >

を使用して提案に従う場合

C:\Program Files\Java\jdk1.7.0_55\jre\lib

ファイルセットディレクトリとして上記のエラーが発生します。そして jfxrt.jar が存在します。

問題を解決する方法を知っている人はいますか?

4

1 に答える 1

0

エラーは、ant4eclipse がそのコンテナーのclasspathエントリを見つけることができるat.bestsolution.efxclipse.tooling.jdt.core.JAVAFX_CONTAINERが、そのコンテナーの定義を見つけることができないためです。

filesetここで、コンテナーを構成する jar ファイルを定義するためにタグを指定する必要があります。あなたの場合jfxrt.jar、エラーメッセージが言うように

<ant4eclipse:jdtClassPathLibrary name="at.bestsolution.efxclipse.tooling.jdt.core.JAVAFX_CONTAINER">
  <fileset dir="..."/> // the location to the jar
</ant4eclipse:jdtClassPathLibrary >
于 2014-05-27T08:19:27.513 に答える