Java Runtime Environment (JRE) - Unable to build and run Javapetstore using Sun SDK

Hi,

There is a problem I抳e come across building and running JavaPetstore from Command Line using Ant.

It shows that Build is successful but there is an error message in very beginning:

?b>Unable to locate tools. jar. Expected to find it in C:\Program Files\Java\jre 1.5.0_11\lib\tools.jar?br />

But there is no such a file in jre-1.5.0_11 or previous versions.

The only place where the file with such name can be found is jdk\lib.All attempts to run end up with:

?BUILD FAILED.

C:\<PETSTORE_HOME>\bp-project\command-line-ant-task.xml:77;unable to find javac compiler;com.sun.tools.javac.Main is not on the class path.

Perhaps JAVA_HOME does not point to JDK.

Directories C:\Sun\SDK\bin and C:\Sun\SDK\jdk are in the PATH.

JAVA_HOME as a System variable is set up to C:\Sun\SDK\jdk.

Building and running other applications like a BluePrints or Samples brings to same result.

What can I do? I will post more information if needed.

Thank you in advance for help.

[1063 byte] By [Anabellaa] at [2007-11-26 23:06:15]
# 1
Multiply duplicated
ChuckBinga at 2007-7-10 13:59:46 > top of Java-index,Desktop,Runtime Environment...