From: Arved Sandstrom on 18 Apr 2010 18:37 Bill Cunningham wrote: > Lew wrote: > : > >> You'd set the environment variables JAVA_HOME='C:\java\jdk1.6.0_u20\' >> and ANT_HOME='C:\java\apache-ant-1.8.0\'. > > I have been leaving the ' out. Maybe that's my problem. I also include > the \bin in there so that might be part of my problem. I have also been > including the bin directory. > > Bill A common convention is that FOO_HOME refers to the system-*dependent* directory immediately containing the system-*independent* structure of FOO, such as directories "bin" and "docs" and "lib" and so forth. So ANT_HOME varies widely by individual, OS, software version etc, while the contents of ANT_HOME for *anyone* should be pretty much the same (given same or similar versions). Modify your PATH environment variable to account for the location of executables (like programs in a "bin" directory); otherwise, construct paths to the executables as required using the *_HOME variables (e.g. "%ANT_HOME%\bin"). AHS
From: Bill Cunningham on 18 Apr 2010 18:48 "Arved Sandstrom" <dcest61(a)hotmail.com> wrote in message news:_QLyn.2228$Z6.1958(a)edtnps82... > A common convention is that FOO_HOME refers to the system-*dependent* > directory immediately containing the system-*independent* structure of > FOO, such as directories "bin" and "docs" and "lib" and so forth. So > ANT_HOME varies widely by individual, OS, software version etc, while the > contents of ANT_HOME for *anyone* should be pretty much the same (given > same or similar versions). > > Modify your PATH environment variable to account for the location of > executables (like programs in a "bin" directory); otherwise, construct > paths to the executables as required using the *_HOME variables (e.g. > "%ANT_HOME%\bin"). Well this is what I've been doing. I get java but not javac or jar. So I know I'm doing something wrong I wrote a small batch file I call j.bat. Here's a copy: @echo off set path=c:\program files\java\jdk1.8.0_20\bin;%path% set classpath=c:\program files\java\jdk1.8.0_20\lib\tools.jar;%classpath% I get java but not javac or jar. Not to mention ant. Bill
From: Arne Vajhøj on 18 Apr 2010 19:00 On 18-04-2010 18:05, Bill Cunningham wrote: > Lew wrote: >> You'd set the environment variables JAVA_HOME='C:\java\jdk1.6.0_u20\' >> and ANT_HOME='C:\java\apache-ant-1.8.0\'. > > I have been leaving the ' out. Maybe that's my problem. You should not use ''. > I also include > the \bin in there so that might be part of my problem. I have also been > including the bin directory. JAVA_HOME should point to the root. But it is the bin dir that needs to be in PATH. Arne
From: Arne Vajhøj on 18 Apr 2010 19:02 On 18-04-2010 18:48, Bill Cunningham wrote: > "Arved Sandstrom"<dcest61(a)hotmail.com> wrote in message > news:_QLyn.2228$Z6.1958(a)edtnps82... >> A common convention is that FOO_HOME refers to the system-*dependent* >> directory immediately containing the system-*independent* structure of >> FOO, such as directories "bin" and "docs" and "lib" and so forth. So >> ANT_HOME varies widely by individual, OS, software version etc, while the >> contents of ANT_HOME for *anyone* should be pretty much the same (given >> same or similar versions). >> >> Modify your PATH environment variable to account for the location of >> executables (like programs in a "bin" directory); otherwise, construct >> paths to the executables as required using the *_HOME variables (e.g. >> "%ANT_HOME%\bin"). > > Well this is what I've been doing. I get java but not javac or jar. So I > know I'm doing something wrong I wrote a small batch file I call j.bat. > Here's a copy: > > @echo off > set path=c:\program files\java\jdk1.8.0_20\bin;%path% > set classpath=c:\program files\java\jdk1.8.0_20\lib\tools.jar;%classpath% > > I get java but not javac or jar. Not to mention ant. 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. Arne
From: Martin Gregorie on 18 Apr 2010 19:04
On Sun, 18 Apr 2010 18:48:15 -0400, Bill Cunningham wrote: > know I'm doing something wrong I wrote a small batch file I call j.bat. > Here's a copy: > > @echo off > set path=c:\program files\java\jdk1.8.0_20\bin;%path% set > classpath=c:\program files\java\jdk1.8.0_20\lib\tools.jar;%classpath% > > I get java but not javac or jar. Not to mention ant. > Are they actually in c:\program files\java\jdk1.8.0_20\bin - have you looked? IOW, did you install the JDK or the JRE? -- martin@ | Martin Gregorie gregorie. | Essex, UK org | |