CreateProcess error=2 running javadoc from Ant

后端 未结 6 1988
执笔经年
执笔经年 2021-02-04 02:56

Can anyone tell me why I am getting this error message

Buildfile: C:\\Users\\Tara\\workspace\\Testing\\build.xml
doc:
   [delete] Deleting directory C:\\Users\\         


        
6条回答
  •  梦毁少年i
    2021-02-04 03:43

    Providing you have a jdk installed and added to Eclipse:

    1. Windows->Preferences Java->Installed
    2. JREs->Add

    You can then

    1. Right click on build.xml
    2. Select Run As->Ant Build... note the ellipsis!
    3. Switch to JRE tab
    4. Select the jdk from the list

    Credit for a similar solution: http://blog.darevay.com/2008/12/running-javadoc-ant-task-from-eclipse/

提交回复
热议问题