The libs.CopyLibs.classpath property is not set up

前端 未结 6 1413
误落风尘
误落风尘 2020-12-18 07:48

I\'m using Eclipse Indigo (3.7) to build an application using ant and a build.xml file.

I am getting the following exception:



        
6条回答
  •  庸人自扰
    2020-12-18 08:24

    This following worked for me:

    1) Downloaded and added the org-netbeans-modules-java-j2seproject-copylibstask.jar to my Ant/lib directory: C:/apache-ant-1.9.4/lib/

    2) (in command line) Navigated to the folder containing my "build.xml" file:

    cd C:\eclipse_workspace\myproject\abcfolder

    (my build.xml location: C:\eclipse_workspace\myproject\abcfolder\build.xml)

    3) Ran the following commmand:

    ant -Dlibs.CopyLibs.classpath=C:/apache-ant-1.9.4/lib/org-netbeans-modules-java-j2seproject-copylibstask.jar

    I got a successful build.

提交回复
热议问题