Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Victoria, BC, Canada
    Posts
    962
    Thanks
    0
    Thanked 1 Time in 1 Post

    Tomcat web server missing the Java environment variable?

    I've downloaded and installed Tomcat onto my computer (Windows 98). When I click on startup.bat in the /bin folder, I get a Dos window saying the JAVA_HOME environment variable is not defined. How can I define it? I've looked in the Tomcat documentation, but didn't find anything about setting environment variables.

  • #2
    Regular Coder
    Join Date
    Nov 2002
    Location
    Bristol, UK
    Posts
    932
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Are you sure you used the Windows binaries and not Linux? (Just making sure lol)

    Anyway, also you need to be running Apache webserver I do believe.

    Plus, you will need to install a Sun JDK (from Sun) in order to use Java.

    Have you done any of this...?

    ::] krycek [::
    ithium | SOAPI | SDP | PTPScript manual
    "ithium is a non-profit webhost, which is pretty much unique. The mission of ithium is to provide free hosting resources for worthwhile and needy non-profit projects, which otherwise may not be able to obtain such facilities. The money from commercial customers goes to maintain ithium's servers and further development."

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Victoria, BC, Canada
    Posts
    962
    Thanks
    0
    Thanked 1 Time in 1 Post
    Yes, I have installed the Windows format.

    I have Apache installed as well, which works fine. I started it first, then tried running Tomcat, but no change.

    As for the JDK, do you mean the Java JDK? If so, that should be installed...I'm pretty sure it was included with the Sun One Studio that I installed.

  • #4
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    I used this step by step tutorial a long time ago when i set up to run JSP on my system.

    http://www.devshed.com/Server_Side/J...Dev/page1.html
    Last edited by Spookster; 02-28-2003 at 02:26 PM.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #5
    New to the CF scene
    Join Date
    Feb 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb JAVA_HOME.....

    To solve the problems you are having you need to make sure that you have a java SDK installed. You do not need to be running apache becuase tomcat has it's own built in http server. If you want to use Apache and tomcat together that is a little more involved.

    Once you have installed the SDK, you will need to create an environment variable called JAVA_HOME with the value set to the path of you SDK installation. On my machine the value of JAVA_HOME is C:\j2sdk1.4.0 Under this directory you will find the java SDK files. If you can't find this you may want to try to find the file src.zip which will be in the root directory of the installation.

    Once this is done you will be able to run the startup.bat file, and as if by magic tomcat will be up and running.

    Hope this helps.

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    Victoria, BC, Canada
    Posts
    962
    Thanks
    0
    Thanked 1 Time in 1 Post
    I reinstalled the sdk, and Tomcat works fine now. Thanks!!!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •