From: Bill Cunningham on
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.

Bill



From: Bill Cunningham on
Martin Gregorie wrote:
> 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?

I have the JRE and JDK installed. javac.exe and jar.exe are indeed in
the bin directory. I did something and was for a small minute able to run
javac and jar. Then I lost it. I think I went to the jdk's bin folder.

Bill


From: Lew on
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.

Bill Cunningham wrote:
> @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.

You say you "get error messages", but that's so vague. I don't suppose you
could unbend a little and actually quote (verbatim) those messages?

--
Lew
From: Bill Cunningham on
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?

Bill


From: Martin Gregorie on
On Sun, 18 Apr 2010 19:18:25 -0400, Bill Cunningham wrote:

> Martin Gregorie wrote:
>> 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?
>
> I have the JRE and JDK installed. javac.exe and jar.exe are indeed
> in
> the bin directory. I did something and was for a small minute able to
> run javac and jar. Then I lost it. I think I went to the jdk's bin
> folder.
>
In that case there's something wrong with your %PATH% variable or you'd
be able to run all the programs in the JDK's bin directory from the
command line: "jxxx -version" should work if jxxx is java, javac or jar.

run "echo %PATH%" and post the results here.


--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |