How to change JAVA.HOME for Eclipse/ANT

前端 未结 10 1908
星月不相逢
星月不相逢 2020-12-04 17:36

I am trying to sign a jar file using an ANT script. I know this has to be pointed at the JDK directory for jarsigner.exe to run, but when I echo java.home it re

10条回答
  •  情话喂你
    2020-12-04 18:11

    If you are using Eclipse, try the following:

    • Right click on the ant build file, then choose "Properties".
    • Click on the "Run/Debug Settings", then click on the launch configuration file. You should be able to edit it then.
    • After you click "Edit", you should see a new window with a "Properties" tab which will show you a list of Ant build properties. There is a "java.home" property in the list. Make sure it refers to the correct path.

提交回复
热议问题