getting this error :NB: JAVA_HOME should point to a JDK not a JRE

HI All

I've installed jdk1.5.0_06 in windows enviroment.i've correctly set the java_home path for it.

Apart from it i've installed two servers one is Weblogic 9.1 and Tomcat 5.5 and NetBeans 5.5.1.

While running my project with the netbeans it tried to start the server. On starting the Tomcat server it showed me this error in the Tomcat log.

NB: JAVA_HOME should point to a JDK not a JRE

but while running Weblogic it worked smoothly. the java_home path has both the paths of jdk1.5 (installed separatly ) and the one which is bundeled with weblogic(jdk1.5)

Could anyone tell me the solution for the error.while running the project sseparatly is working fine. but i am not able to run it from NetBeans.

[757 byte] By [ashishnautiyala] at [2007-11-27 9:29:39]
# 1
echo %JAVA_HOME%What does it print?
aniseeda at 2007-7-12 22:38:46 > top of Java-index,Java Essentials,Java Programming...
# 2
AFAIK JAVA_HOME should only have one directory in it. It's not like PATH or CLASSPATH.
ejpa at 2007-7-12 22:38:46 > top of Java-index,Java Essentials,Java Programming...
# 3
well as according to your suggestion i removed all the java_home path except the one of the jdk.echo %java_home% is showing me the java_home content.....\Java\jdk1.5.0_06\binthe jdk is inside the program files does it effects.
ashishnautiyala at 2007-7-12 22:38:46 > top of Java-index,Java Essentials,Java Programming...
# 4
point JAVA_HOME to C:\Program FIles\Java\jdk1.5.0\only and do not include "bin" folder
Nistelrooya at 2007-7-12 22:38:46 > top of Java-index,Java Essentials,Java Programming...
# 5
Well thanks the last suggestion worked successfully.By why it is so that we bin folder was not selected, because when i earlier installed weblogic then at that time weblogic automatically made this entry using its own internal jdk and the path was till bin.
ashishnautiyala at 2007-7-12 22:38:46 > top of Java-index,Java Essentials,Java Programming...
# 6

> By why it is so that we bin folder was not selected,

> because when i earlier installed weblogic then at

> that time weblogic automatically made this entry

> using its own internal jdk and the path was till bin.

A JAVA_HOME directory should point to a directory containing all the java related stuff. The bin part is appended while executing javac or java command. Weblogic might be using the JAVA_HOME variable differently.

aniseeda at 2007-7-12 22:38:46 > top of Java-index,Java Essentials,Java Programming...
# 7
thanks for the replies.
ashishnautiyala at 2007-7-12 22:38:46 > top of Java-index,Java Essentials,Java Programming...