Java ant: specify which java installation should be used to run

Can I specify which java installation on the system should be used to run the java task? if so, how?

in my case, I want to indicate whether I want to run the 32-bit or 64-bit version.

thank!

+3
source share
4 answers

I believe this is jvmthe <java>Ant task attribute .

jvm - the command used to invoke the Java virtual machine, by default - "java". Command allowed by java.lang.Runtime.exec (). Ignored if fork is disabled.

+3
source

From http://ant.apache.org/manual/Tasks/java.html

fork javac JDK ;

javac fork = "yes". Java, Ant. , fork = "no". Ant 1.6, jikes, jvc, gcj sj.

+1

JAVACMD (. )

0

<java> JVM, <exec> java , .

0
source

Source: https://habr.com/ru/post/1748996/


All Articles