can anyone tell me where do i set path for JAVA_HOME


Web tier: servlets, JSP, Web frameworks: can anyone tell me where do i set path for JAVA_HOME

  1. i have tomcat 1.4 and j2sdk1.4... when i start the server
    it says jdk path not available...

    can anyone tell me where shold i set the path for jdk...???
  2. what kind of OS you are using?

    if linux, set the .bash_rc or /etc/profile

    if winnt/win2000, go to System-->Environment to set

    if win98, set in autoexec.bat
  3. The JAVA_HOME environment variable is not defined correctly
    This environment variable is needed to run this program
    The system cannot find the batch label specified - end
    Using CATALINA_BASE: ..
    Using CATALINA_HOME: ..
    Using CATALINA_TMPDIR: ..\temp
    Using JAVA_HOME: d:\j2sdk1.4.0\bin\javac.exe
    The name specified is not recognized as an
    internal or external command, operable program or batch file.

    i had given path till bin and it generated the same error...
    the variable was set previously it gives the same error...

    please guide
  4. use this:

    SET JAVA_HOME=d:\j2sdk1.4.0
    SET PATH=%PATH%;d:\j2sdk1.4.0\bin

    That will do it.
  5. sorry but it doens't reflect...
    i m facing the same problem still...

    the varialbles are set but still it gives me the same error..
    i have cheked the path... its fine..

    thanx in advance