JAVA_HOME & CATALINA_HOME

I just want to know how to set environment variable on JAVA_HOME
and CATALINA_HOME on windows 2000. I tried to run the setup of
jakarta-tomcat-4.0 but I encounter an error because of this.
Thanks

Go to:
Start
Configuration
Control panel
System
Advanced
Variable enviroment
new
Variable Value
CATALINA_HOME c:\directory_name_jakarta_tomcat
by example:
CATALINA_HOME C:\jakarta-tomcat-4.0.3
Here is a helpful link:
http://www.moreservlets.com/Using-Tomcat-4.html#Catalina-Home
Best regards,
Mary

Similar Messages

  • Problem: package javax.servlet.jsp does not exist

    I am a novice JSP programmer. My projects that use any javax.servlet classes are not seeing those at all. I am working with a group of folks using Java SE 1.5. (Note: I'm using Windows so the directory separator is "\")
    What Used to work:
    1. Nearly all my projects were working using Java version 1.6. These projects were developed as examples from Wrox and Apress books about JSP and Struts.
    What has changed:
    1. I un-installed the version 1.6 of JDK and JRE, as well as tomcat, netbeans, and all the associated libraries/jars.
    2. I installed version 1.5 of JDK and JRE, as well as tomcat, netbeans, and all the associated libraries/jars.
    3. I updated my JAVA_HOME, CATALINA_HOME, CLASSPATH, and PATH environmental variables. I made sure that the path to servlet-api.jar (in the tomcat common\lib) is included in the classpath.
    What is wrong:
    1. References to javax.servlet.* are not satisfied--they are flagged in the source code in NetBeans and I get compiler errors with any project containing those references. For example:
    ... package javax.servlet.jsp does not exist
    import javax.servlet.jsp.*;
    What I've found:
    1. My CATALINA_HOME=C:\Java\Tomcat 5.5
    2. My JAVA_HOME=C:\Java\jdk1.5.0_11
    3. My CLASSPATH=.;C:\Program Files\QuickTime\QTSystem\QTJava.zip;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib;%JAVA_HOME%\lib\jsp-api.jar;%CATALINA_HOME%\common\lib\servlet-api.jar;C:\Java\logging-log4j-1.2.14\dist\lib\log4j-1.2.14.jar
    4. My PATH=c:\wint\BIN;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;%CATALINA_HOME%\bin;C:\MySQL\MySQL Server 5.0\bin;D:\MiKTeX 2.5\miktex\bin;C:\Perl\bin\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\SFU\Perl\bin\;C:\SFU\common\;C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Bin;C:\Program Files\Lahey-Fujitsu Fortran\v7.1\Win32\Bin
    What I need:
    1. I need to have some reference to the servlet classes satisfied in my configuration. Any help is appreciated.
    thanks
    jondr

    Oh. I got some over-the-shoulder debug help.
    My error was in the classpath specification:
    The path: %JAVA_HOME%\lib\jsp-api.jar
    Should be: %CATALINA_HOME%\lib\jsp-api.jar
    That contains the javax.servlet.jsp.*
    Thimk.
    Message was edited by: jon
    jondr

  • IE, tomcat 4.0 - running servlet kicks to localhost7070 search screen

    I moved my shopping cart website (my first) to a PC running xp, downloaded j2sdk1.4.1_02 & tomcat4.0, set classpath, java_home, catalina_home. Set html in the webapps directory of Tomcat, java servlets in the webapps/mywebsite/WEB-INF/classes folder and recompiled sucessfuly. Tomcat runs on localhost7070, I can see the HTML in /mywebsite but when I click on the 'submit button' to run the servlet, my IE momentarily shows 'not found' but immediately goes to an ATT Worldnet site with a search field filled with localhost:7070.
    I have no idea of what setting might be off on IE but I have checked the directorys and system variables multiple times and can't figure this out. Any ideas would be greatly appreciated.
    Bruce

    Your web.xml (in WEB-INF) have your Servlet URL mapping. Try and see if you can get in contact with your Servlet manualy by typing in URLs like
    HTTP://localhost:7070/servlet/ProductLookup
    HTTP://localhost:7070/mywebsite/servlet/ProductLookup
    HTTP://localhost:7070/mywebsite/ProductLookup
    and when you find it, compare it the the URL in your HTML, relative to the URL used load the HTML page.

  • Newbie question about loading servlets on tomcat

    I have what is probably a very basic question about loading simple servlets on to tomcat to test its installation. I have followed instructions from numerous tutorials to the letter but still I can't get it to work.
    I have installed tomcat on win2k in c:\tomcat. I set up the jdk, environment vars (JAVA_HOME, CATALINA_HOME, TOMCAT_HOME) which all point at the correct dirs. I can compile a servlet without errors. I can also place a test jsp and html file into the root directory and they both work fine.
    However, now I am trying a test servlet and no matter what I do it gives me a 404. I have a servlet class file called "HelloServlet.class" which I placed into the %install_dir%\webapps\ROOT\WEB-INF\classes directory. I try to reference it using this url:
    http://localhost/servlet/HelloServlet
    Tomcat is configured to use port 80 and has been restarted after adding the servlet class file. Does anyone have a clue why this is not working for me?
    Many thanks
    Marc

    You have to add in the web.xml file that it is in the WEB-INF dir, the information about your servlet. An example:
    <web-app>
    <servlet>
    <servlet-name>HelloServlet</servlet-name>
    <servlet-class>HelloServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloServlet</servlet-name>
    <url-pattern>/HelloServlet</url-pattern>
    </servlet-mapping>
    </web-app>

  • HELP! XP ENVIRONMENT VARs and Tomcat installation

    Hello people. I found out that at work we'll be switching over to Windows XP soon. But the problem is that our system administrator has disabled the ability to create/edit SYSTEM environment variables. I can't just ask him to enabled it because our IS department doesn't support JAVA :(. Previously, I had Tomcat on a Win98SE box w/o the sys admin knowledge (but don't get me wrong, I was doing work-related stuff with the tomcat server), so it wasn't an issue before. Is there a workaround to creating the JAVA_HOME, CATALINA_HOME, and PATH environment variables? What about the "User Variables"? Can I create "user variables" instead? Or can I create and run a DOS batch file that sets the necessary system environment variables for the tomcat installation? This is what I've been doing (DOS batch method) currently with the Win98 box. Sorry I have very little experience with XP, but from what I've heard, it can be very restricting depending upon on how it was setup by the system admins. Out of the box w/o sys admins, I've heard it's an ok OS.
    Anyways...any help is greatly appreciated.
    ...damn those system administrators :( :p

    Also another question. To install the SDK1.4, do I just install it like I normally do as in a Win98 box? I thought there was a XP plug-in that needed to be downloaded and installed too some time ago? Did the plug-in later became built into the installation bundle? I read somewhere there was a legal judgement made to force Microshaft to support Java?
    Sorry I've been out of the XP loop...

  • Tomcat connection refused from localhost

    I have Tomcat 5.5.7 installed as a stand-alone server on my local machine. I have installed Java jre 1.5.0 (5.0). The OS is Windows 2000 SP3. The install went without incident. I set system variables JAVA_HOME, CATALINA_HOME, TOMCAT_HOME.
    When I try to access anything using tomcat, I get "The connection was refused when contacting ......" I've used ...
    http://localhost
    http://localhost :8080
    http://127.0.0.1
    http://127.0.0.1:8080
    ...and a number of variations to get at the webapps area. All give exactly the same response.
    I can ping myself, but when I run Steve Gibson's IS Serve, it tells me the port is closed.
    I think I have server.xml set up correctly. Any ideas. Any help will be appreciated. Thanks.
    - Ed Lipchus

    did you try installing tomcat as a windows service
    download tomcat.exe and double click and follow instructions

  • How to run servlet in tomcat5

    How to run the servlet in tomcat5...
    Is it need to set any classpath here. I tried alot in editing web.xml, and also i set the environment variable as
    JAVA_HOME, CATALINA_HOME to Java1.2 and tomcat5 rsptly.
    I cant even run the jsp file... it is giving the error lik this "The requested resource (file name) is not available " (HTTP status 404).
    what will be the problem..
    pls help me
    thx in advance

    You have not told your container what url maps to your servlet. This needs to be in your web descriptor:
    <servlet>
        <servlet-name>watermelon</servlet-name>
        <servlet-class>myservlets.watermelon</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>watermelon</servlet-name>
        <url-pattern>/fruits/*</url-pattern>
    </servlet-mapping>Then all requests to any url under yourwebapp/fruits/ will be processed by the servlet.
    I suggest you read a tutorial before going any further:
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/

  • JWSDP 1.5 and Tomcat for jwsdp

    Hi,
    I downloaded and installed both JWSDP 1.5 and Tomcat for jwsdp.
    I set the variables JWSDP_HOME,JAVA_HOME,CATALINA_HOME,ANT_HOME as usual.
    But, when I launch "catalina.sh run" I have the seguent warning....
    INFO: Processing Context configuration file URL file:/opt/tomcat50-jwsdp/conf/Catalina/localhost/xindice.xml
    10-dic-2004 17.31.48 org.apache.xindice.server.XindiceServlet init
    WARNING: NamingException: javax.naming.NameNotFoundException: Name org.xml.sax.driver is not bound in this Context
    10-dic-2004 17.31.50 org.apache.xindice.core.Database setConfig
    INFO: Database points to /opt/tomcat50-jwsdp/registry-server/Xindice/./db
    10-dic-2004 17.31.51 org.apache.xindice.server.XindiceServlet init
    INFO: Database successfully started
    Does anybody tell me why?
    Thanks, Tony

    Tony:
    I'm seeing the same issue on my system.
    Redhat 9.0
    JDK 1.5.0_01
    JWSDP 1.5
    TOMCAT 5 for JWSDP
    Did a complete system wipe and reinstall and have the same issues.
    Did you get any responses, or discover a solution?
    TIA,
    drjohn

  • Unable to run jsp in tomcat 5.0

    hi ,
    iam unable to run jsps in tomcat 5.0.
    i get an error saying ,unable to compile java compiler
    iam able to compile servlets & execute them.
    i have already set the paths for JAVA_HOME & CATALINA_HOME
    please guide me accordingly
    regards ,
    shailesh

    the same code gets executed in other system in which there is only one jdk.
    the system which iam using has got many jre s due to
    1) netbeans IDE
    2)Weblogic server
    3) jdk 1.4 was previously installed
    4) jdk 1.5 was also installed
    but i have set JAVA_HOME   =jdk1.6
    I doubt the compiler is trying to compile itself or another compiler
    regards ,
    shaileshkumar

  • Tomcat : exception during startup processing

    Hi !
    I have this exception when trying to start Tomcat :
    Starting service Tomcat-Standalone
    Apache Tomcat/4.1-dev
    Starting service Tomcat-Apache
    Apache Tomcat/4.1-dev
    Exception during startup processing
    java.lang.reflect.InvocationTargetException:java.lang.NoSuchError:java.lang.Runtime: method addShutdownHook(java/lang/Thread;)V not found
    at org.apache.catalina.startup.Catalina.start (Unknown source)
    at org.apache.catalina.startup.Catalina.execute(Unknown source)
    at org.apache.catalina.startup.Catalina.process(Unknown source)
    at java.lang.reflect.Method.invoke (Native Method)
    at java.lang.reflect.Method.invoke (Compiled Code)
    at org.apache.catalina.startup.Bootstrap.main (Compiled Code)
    I have imported the jdni.jar in my jdk 1.2.2, and set variables (PATH, JAVA_HOME, CATALINA_HOME, CLASSPATH), and I don't have Apache.
    Please, help me if you have any idea !
    Gaelle.

    Hi,
    I got this error too when I installed Tomcat 3.2.1 on JDK1.2.2. But when I changed by JDK to 1.3.1 and altered the tomcat.bat file to take JAVA_HOME to jdk1.3.1 path, it worked fine.
    Change your JVM to JDK1.3.1 and this should get rid of the error.
    Regards,
    Seetesh

  • NoClassDefFoundError: sun/security/x509/CertificateSerialNumber

    Hi!
    I have the following installed -
    JDK5, Tomcat for JWSDP and JWSDP.
    Now as per the docs for "Integrating the Java WSDP Component Technologies with the Tomcat 5.0 for Java WSDP Container" I execute the bat file "jwsdpontomcat.bat <tomcat5 installation dir>" but I am getting the following error -
    NoClassDefFoundError: sun/security/x509/CertificateSerialNumber
    I have the JAVA_HOME, CATALINA_HOME and JWSDP_HOME properly set but still I get this error. The class "CertificateSerialNumber" is in
    %JAVA_HOME%\jre\lib\rt.jar and this jar is in the classpath but still I get the error on executing the bat file.
    Any idea/suggestion/pointer what could be missing would be very helpful?
    TIA

    Hi,
    Sorry I can't answer your qustion but, as you can see, you are much further ahead of me in using this particular package. In fact, I have been trying to locate a copy of the sun.security package for downloading and have had no luck whatsoever! I have been just about everywhere imaginable on the Sun site and the only mention of it is here under the forums and a description located under http://java.sun.com/products/commerce/docs/ssl/packages.html. Judging by where you are, I was hoping that you could point me in the right direction via an appropriate URL.
    Thanks,
    Louis P. Civitello

  • Running Tomcat 4.0.1 on RH7.0

    I try to run Tomcat 4.0.1 on RH7.0,
    [root@backup bin]# ./startup.sh
    but I get this error,
    Guessing CATALINA_HOME from catalina.sh to ./..
    Setting CATALINA_HOME to ./..
    You must set JAVA_HOME to point at your Java Development Kit installation
    then I set JAVA_HOME, with this command "set JAVA_HOME=/jdk1.3"
    and I still get the same error....
    Any idea what is happening?
    /snricek

    I've been execute the command to set JAVA_HOME & CATALINA_HOME.
    This is the comment I've get, after I execute "startup.sh" :
    Using CLASSPATH: /jakarta-tomcat-4.0.1/bin/bootstrap.jar:/jdk1.3/lib/tools.jar
    Using CATALINA_BASE: /jakarta-tomcat-4.0.1
    Using CATALINA_HOME: /jakarta-tomcat-4.0.1
    Using JAVA_HOME: /jdk1.3
    and I get nothing, when I tried to show an index.html:
    http://myserver:8080/index.html
    should I configure "server.xml" file ?

  • Please help me start Tomcat

    hi,
    Im really struggling here. This is very frustrating. I need to write code and be able to test it, not just read read read from a book. I went to:
    http://tomcat.apache.org/tomcat-5.0-doc/setup.html,
    and that never helped.
    I just dont know how to get it up and running. Please help someone.

    I just dont know how to get it up and running. And what's the problem ?
    Which error messages do you get ?
    What does the log file say?
    The usual way to get tomcat running is:
    - Unpack the downloaded tomcat archive.
    - if necessary set the environment variables JAVA_HOME, CATALINA_HOME
    - look into the $CATALINA_HOME/conf directory and check if a server.xml exists
    - if necessary rename one of the server-*.xml files into server.xml
    - in a command shell run "catalina.bat (or .sh) run" or even tomcat.exe
    - try to access the default or jsp-examples pages
    - if that works
    - create a war file from your project
    - put the war file into the directory $CATALINA_HOME/webapps
    - to be sure restart tomcat.
    - try to access your start page.

  • Java error message 'Can't find Java Home'

    While Installing an application, I can see the error popup window 'Can't find Java Home'. Why it occur the error message only most newer PC. Please advise me
    Thanks in Advance,
    Ponmuthu

    Well, hi again!
    My problem is not solved, when I tried to start Tomcat today it fails with the same message as earlier, namely
    C:\jakarta-tomcat-4.1.12-LE-jdk14\bin>catalina start
    The JAVA_HOME environment variable is not defined correctly
    This environment variable is needed to run this program
    Using CATALINA_BASE: C:\jakarta-tomcat-4.1.12-LE-jdk14
    Using CATALINA_HOME: C:\jakarta-tomcat-4.1.12-LE-jdk14
    Using CATALINA_TMPDIR: C:\jakarta-tomcat-4.1.12-LE-jdk14\temp
    Using JAVA_HOME: C:\j2sdk1.4.1_01
    Det g�r inte att hitta filen -Djava.endorsed.dirs=. (Could find the file -DJAVA.endorsed.dirs=...............
    And JAVA_HOME, CATALINA_HOME, TOMCAT_HOME is:
    C:\jakarta-tomcat-4.1.12-LE-jdk14\bin>echo %JAVA_HOME%
    C:\j2sdk1.4.1_01
    C:\jakarta-tomcat-4.1.12-LE-jdk14\bin>echo %TOMCAT_HOME%
    C:\jakarta-tomcat-4.1.12_LE-jdk14
    C:\jakarta-tomcat-4.1.12-LE-jdk14\bin>echo %CATALINA_HOME%
    C:\jakarta-tomcat-4.1.12-LE-jdk14
    Any more suggestions of why it's not working?

  • HTTP Status 404 - /TomcatProject/JSPDemo.jsp = ERROR

    Hi All,
    I was refering below link:-
    [http://plato.acadiau.ca/courses/comp/dsilver/2513/EclipseAndTomcatTutorial/]
    I was able to complete upto Step 7, but after completing Step 8 I'm unable to see the output under tomcat, when I run <b>http://localhost:8080/TomcatProject/JSPDemo.jsp</b> I get above error.
    I'm getting tomcat home page perfectly under <b>http://localhost:8080</b>, so can anybody help me out? what and where I'm doing wrong?
    Also for better understanding I have tomcat, j2sdk1.4 & eclipse as below:-
    C:\apache-tomcat-6.0.20
    C:\j2sdk1.4.2_05
    C:\eclipse
    while configuring eclipse I gave workspace as:-
    C:\eclipse\workspace and hence above TomcatProject project which I created under eclipse its path as:-
    C:\eclipse\workspace\TomcatProject (with containing bin, WEB-INF other folders & files too)
    Can anybody tell me how should I set env variable (just wanna double check):-
    CLASSPATH,
    JAVA_HOME,
    CATALINA_HOME &
    Path
    Feel free for any doubts
    Thanks in advance
    regards,
    Kumar

    Hi Balus,
    I reinstalled everything and now everything is working perfectly from your guided blog/article, wonderful work buddy, I really appreciate your help towards me.
    But still wanna asking you few things:-
    1). So the good practice is two keeps all the things (jdk, jre, eclipse, tomcat, mojarra) under one single working directory as <b>C:Java</b> is it?? I'm correct? pls. let me know if I'm wrong than
    2). I have computer background and good understanding of OOP's and core java concepts can you pls tell me which book or books or blog or article which will give me best practical practice for best knowledge (eg. like your blog gave me good step-by-step knowledge) do you any more good links from where I can practice and learn side-by-side.
    Once again I really appreciate your effects towards me, thxs in advance
    Thanks,
    regards,
    Kumar

Maybe you are looking for

  • Case When Statement and ORA:01722 Invalid number error

    Hi folks, I have posted this under another heading as well under E-business suite so apologies if some you have already seen it but I would really appreciate some help on this one. Any suggestions are most welcome. We are trying to put together a cal

  • When i open my InDesign it crashes.

    Hello i am a student and on school i need to use a lot of adobe products on my pc. I can open all of my products except for Adobe InDesign cc 2014, i have done all of my updates and it stills says their is a problem with InDesign.

  • How do I install Fonts in FM12?

    Hello everyone, I've got the following problem: A customer has updated his PC to Windows 7. So he reinstalled FM12 on his new system. After that he wanted to install his fonts he had before on his old pc. I dont know how I could help him, so I would

  • Burning ITunes video (LOST) onto a DVD

    Hello all, Can someone please tell me how I can burn Lost onto a DVD so I can watch it on my home DVD player? Thanks

  • [svn:fx-trunk] 9329: Fixing openDuration on Tree.

    Revision: 9329 Author:   [email protected] Date:     2009-08-14 17:07:31 -0700 (Fri, 14 Aug 2009) Log Message: Fixing openDuration on Tree.  The issue was that a call to UIComponent.suspendBackgroundProcessing() wasn?\226?\128?\153t being respected b