A change in ant.bat¶
In Jeeb, ant is installed in ext/ant/ to ease installation. Two scripts ant (Linux/mac) and ant.bat (windows) have been added in trunk/, in the same dir than ant's build.xml. These scripts redirect to ext/ant/bin/ant and ant.bat.
This note is about ext/ant/bin/ant.bat. Under Windows, a problem has been reported (S. Griffon) when running ant under this configuration. The particular point was: JAVA_HOME was set to a jre home directory (jre: Java Runtime Environment, without a javac compiler).
The change: first line in ext/ant/bin/ant.bat, added a line
set JAVA_HOME=""
Thus, java is searched in the PATH instead than by relying on JAVA_HOME (unused).
At this time, the only environment variable to be needed in Jeeb is PATH, having to contain jdk1.6/bin/
Note: also added the line in trunk/ant.bat (convenient shortcut to ant from trunk/) in case of ant upgrade.
fc - 3.3.2009
EDIT fc-22.9.2011
The note upper may not be enough in some cases.
Check Windows' Start > Parameters > Configuration panel > Add / remove programs tool
You should have only one version of Java installed : a java development kit (JDK), version 1.6.x update x- If missing, download and install this jdk on your machine
- If other version of java are present, including java runtime environments (JRE does not include the java compiler, not approriate), remove them from your computer.
Note: the JDK is a JRE + a java compiler, that's what we need
Reminder: the only requirement to run jeeb applications is to have the jdk 1.6.x/bin directory in the system PATH variable. It can be tested by running in a terminal the 2 commands: java -version and javac -version. They both must return "jdk 1.6.X".