Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use cmake's JAVA_EXECUTABLE to run Java tests.
[simgrid.git] / examples / java / energy / vm / energy-vm.tesh
index e07fb6a..6cf1dd1 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/env tesh
 
-$ java -classpath ${classpath:=.} energy/vm/Main ${srcdir:=.}/../platforms/energy_platform.xml
+$ ${javacmd:=java} -classpath ${classpath:=.} energy/vm/Main ${srcdir:=.}/../platforms/energy_platform.xml
 > [0.000000] [java/INFO] Using regular java threads.
 > [MyHost1:energy VM runner:(1) 0.000000] [java/INFO] Creating and starting two VMs
 > [MyHost1:energy VM runner:(1) 0.000000] [java/INFO] Create two tasks on Host1: one inside a VM, the other directly on the host