From: Arne Vajhøj on 18 Apr 2010 19:43 On 18-04-2010 19:15, Bill Cunningham wrote: > Arne Vajh�j wrote: > >> You can drop the CLASSPATH completely. >> >> If you do: >> >> set path=c:\program files\java\jdk1.8.0_20\bin;%path% >> >> and: >> >> c:\program files\java\jdk1.8.0_20\bin\javac.exe >> c:\program files\java\jdk1.8.0_20\bin\jar.exe >> >> exists, then the javac and jar commands should exist. >> >> But somehow I doubt that those files exist. >> >> We are waiting for Java 1.7 - Java 1.8 is way out in >> the future. > > @echo off > set path=c:\program files\java\jdk1.8.0_20\bin;%path% > c:\program files\java\jdk1.8.0_20\bin\javac.exe > c:\program files\java\jdk1.8.0_20\bin\jar.exe > > I get error messages with this. I know how to set XP's enviorment > variables in the advanced tab so I could do that. I am just writing this > batch file. If I can get java, javac, and jar to work I would be happy and > then work on ant. The 1.8 vs 1.6 is most likely the problem. Arne
From: Arne Vajhøj on 18 Apr 2010 19:44 On 18-04-2010 19:34, Bill Cunningham wrote: > Arne Vajh�j wrote: >> JAVA_HOME should point to the root. >> >> But it is the bin dir that needs to be in PATH. > > Ok whew. I set the path variable in windows's environment settings in > the advanced tab and not through a batch file and I can get javac and jar > now. So now that I know I am not supposed to use a classpath I will forget > all about it. Now is JAVA_HOME supposed to be set as path or as a new > environment variable under the advanced tab? Should I create a new variable > in the enviroment button in XP? Yes. Arne
From: Bill Cunningham on 18 Apr 2010 19:56 Arne Vajh�j wrote: > Yes. Would that be something called java and then under the new variable I would put %JAVA_HOME%;c:\program files\java\jdk1.6.8_20 And leave it at that so that ant can find it? Bill
From: Bill Cunningham on 18 Apr 2010 20:08 Arne Vajh�j wrote: > Yes. OK ant says it can't find tools.jar. That is what I used to use classpath for. Ant's docs says classpath should be mentioned and unset. How would I do that. I'll keep working it. Bill
From: Arne Vajhøj on 18 Apr 2010 20:13
On 18-04-2010 19:56, Bill Cunningham wrote: > Arne Vajh�j wrote: >> Yes. > > Would that be something called java and then under the new variable I > would put > > %JAVA_HOME%;c:\program files\java\jdk1.6.8_20 > > And leave it at that so that ant can find it? The variable JAVA_HOME should point to c:\program files\java\jdk1.6.8_20 ! (or more likely c:\program files\java\jdk1.6.0_20) Arne |