Tomcat Installation and setting Java Classpath

Please help me in setting up Java classpath for Tomcat Server. I am unable to start the Server itself.

try this it worked for me..install Tomcat and Ant in 2 seperate directories, if you are win98 or less edit your autoexec.bat file and set the class paths as follows
set PATH=C:\jdk1.3\bin;%PATH%
set ANT_HOME=C:\Ant
set TOMCAT_HOME=C:\Tomcat
set JAVA_HOME=C:\jdk1.3
If you are using windows 2000 or NT you have to goto control panel --> system --> advanced and click environment variables
for name type in say TOMCAT_HOME and for value type in c:\Tomcat
restart your computer.
Then goto tomcat\bin and type startup....in a browser type in http://localhost:8080 and you are in
hope this helps

Similar Messages

  • Help, how to install jvm and set the classpath using a batch file

    hello,
    i have created my java application and now have to create an installable / batch file which will install the JVM on the users machine and also the java packages such as javamail and the class files that i have created . it also has to set the classpath.
    i would like to know if anyone can tell me how to go about iti.e. how can i install the JVM using a batch file and then place the javamial packages etc in the apropriate directory .
    or is it advisable to explain it to the user how to go about it in tht user manual.
    and would also like to know that if i install the JVM will the path for the java.exe be set
    or will i have to set the path explicitly from the "batch file" so that the user can run the application without and problem just by running the java command followed by filename from the command prompt.

    hi,
    I have windows and I use it.
    The only problem with the free edition is that you can only create 1 launcher and that during the installation you get 1 popup showing that the installer was created with an unregistered version.
    Stijn

  • Need Help Setting Java Classpath

    I have installed JCreator LE and the JDK 1.6.02 and the JRE 1.6.02 as well as the API's into my JDK doc directory.
    I can't figure out how to set the classpath to allow me to run java programs and I can't figure out how to get java.exe to run either.
    WinXP doesn't come with an autoexec.bat file so that route for setting my classpath is out... I can get to the DOS command prompt just fine but don't know what to type. When I try running any program like java.exe from the JDK a small DOS like box appears for a split second and then disappears.
    If someone could help me solve this/these problems I'd be very grateful. Thanks

    Thanks for your help. I set my CLASSPATH option
    within system/advanced/setvar to: "C:\Program
    Files\Java\jdk1.6.0_02\bin" Which is precisely where
    my jdk is located. Wrong. That directory needs to be in your PATH, not CLASSPATH. PATH tells the operating system where to find .exe files like javac.exe and java.exe.
    CLASSPATH tells the JVM where to look for your .class files
    I've tinkered around and around and I still can't get
    it to work... My confidence in my computer savyness
    is beginning to deteriorate... I've been reading two
    books on java and believe I'm understanding OO pretty
    well into the later chapters at present. I read
    through Suns online tutorial as well and just am not
    understanding what I'm doing wrong here. Thanks-Read the docs for both javac.exe and java.exe. Both take a -classpath option when you run in a command shell. That's the correct way to specify CLASSPATH.
    Do not use an environment variable. That is the wrong way to go about it.
    When you graduate to application servers it'll be a different matter, but by then perhaps you'll understand better.
    %

  • Setting Java CLASSPATH on WINDOWS

    suppose i have the following values to set for CLASSPATH
    C:\Program Files\Common Files\System\Mapi\1033\NT
    and
    abc-win32
    is this correct
    C:\Progra~1\Commo~1\System\Mapi\1033\NT;abc~
    thanks.

    I think that you should use long file namesi don't understand "long file names". just for my own knowledge, how can this
    very thing be done?

  • Setting java classpath [SOLVED]

    Hi everybody,
    I am sure this is not hard, but I have been looking for some time now and just couldn't figure out how to do it. Trying to run simple java applications (I am just learning...) I allways get this error
    Exception in thread "main" java.lang.NoClassDefFoundError: /opt/java/jre/bin/
    Caused by: java.lang.ClassNotFoundException: .opt.java.jre.bin.
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    So after doing some research I am pretty sure this is because my classpath is not set, but I can't figure out the correct directory. I assumed this would be
    /opt/java/bin
    So I added these lines to my .basrc
    export PATH=/opt/java/bin:$PATH
    export JAVA_HOME="/opt/java/"
    export CLASSPATH=.:/opt/java/
    I think java is installed just fine, cause I can run eclipse without problems..
    But it doesn't work... so please help me :)
    Last edited by daJense (2009-05-25 14:10:49)

    First, Thx for replying.. so here is what I get using echo
    [jens@jense-mobile Kap02]$ echo $PATH
    /opt/java/bin:/opt/java/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/share/eclipse:/opt/java/bin:/opt/java/jre/bin:/opt/kde/bin:/usr/share/netbeans/bin/:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core:/opt/qt/bin:/home/db2inst1/sqllib/bin:/home/db2inst1/sqllib/adm:/home/db2inst1/sqllib/misc:/home/db2inst1/sqllib/db2tss/bin
    [jens@jense-mobile Kap02]$
    Now for studying I try to run simple java apps from commandline. Using the -cp option I got my programm to work (it's "HelloWorld"). So if I set up a directory
    ~/javaapps/
    How would I set this path so I don't have to use the -cp option every time I invoke an app

  • Set java classpath.

    hai,
    how to export- set classpath on linux platform.where is jdk located on fedora linux.

    hai,
    i got all u had told,but classpath is set compiles and run only one java class.
    for ex if a class A object is called by class B which has main method and both are put in same folder,their i am finding prob's.problem is class B(main class) doesn't find class A objects and gives errors.

  • Trusted.certs question with regards to Installation and Upgrading Java

    Greetings,
    Thank you to all who take the time to read this especially those who can provide some answers!
    Question #1:
    I read that trusted.certs was not backwards compatible for Java. By this I mean that a "Java Runtime 6 Update 11" generated trusted.certs could not be read / used by "Java Runtime 6 Update 26". Is this correct?
    Question #2:
    Part A: Does a fresh install of Java create the trusted.certs file upon installation or at the time Java is first run after install?
    Part B: When the trusted.certs is created does it do a file check to see if trusted.certs file already exists? If so does it delete and generate a fresh trusted.certs or does it leave the existing file?
    Reason I ask this is that we are getting a java.io.FileNotfoundException for the trusted.certs file. This I believe to be caused by a failed upgrade of Java. When uninstalling "Java Runtime 6 Update 26" it displays "Java Runtime 6 Update 11". This leads me to believe that the trusted.certs is still for Update 11 and not Update 26 which would cause this error even after a fresh install of Java.
    I would love your input and knowledge! Thank you again for your time!

    I am not aware of any trusted.certs file being distributed with Java. Are you referring to the cacerts file?

  • Issue in setting java classpath using bash

    I tried creating a script file for executing my java code in my linux machine.Below is the script which i created.
    #!/bin/sh
    HOME=`pwd`
    JAVA_HOME=$HOME/jre
    CLASSES=$HOME/classes
    CLASS_PATH=$CLASSES/Testing.jar:$CLASSES/server/Server.jar
    "${JAVA_HOME}"/bin/java -cp "$CLASS_PATH" 'com.project.testing.Tester' '10000'It worked perfectly.But if i put this script in a directory containing spaces in its name, it is not working and it is throwing the below exception
    Exception in thread "main" java.lang.NoClassDefFoundError: com/project/testing/Tester
    So i modified the script to escape the spaces in the class path variable.Below is the modified script
    #!/bin/sh
    HOME=`pwd`
    JAVA_HOME=$HOME/jre
    CLASSES=$HOME/classes
    CLASS_PATH=$CLASSES/Testing.jar:$CLASSES/server/Server.jar
    CLASS_PATH=$(echo $CLASS_PATH | sed 's/ /\\ /g')
    "${JAVA_HOME}"/bin/java -cp "$CLASS_PATH" 'com.project.testing.Tester' '10000'But still i am getting the same exception.
    Please help me to solve this problem.

    julians wrote:
    >
    You think?? Why don't you just find out? The classpath is one of the system properties, so just write a Java program which simply writes all of the system properties to stdout. Then look at the system property which contains the classpath.
    Sorry you didn't understand my question.Your answer is irrelevant to my questionThen you should explain your question better, using something less totally useless than "not working".
    My question is I can read.
    It has nothing to do with bash.There is some issue with java in the way it treats the argument after -cp option.If i can find out why should i post it here?.No. Java isn't treating any arguments. Your shell (bash) is treating the arguments. If you think it's Java, then you should investigate that. Which is why I posted what I did. If you think it's irrelevant then it must not be Java causing the problem. Of course you didn't even try it. Time-waster.
    Please simulate this issue and respond to my postYou want me to buy a computer and install bash and try to reproduce your problem? Don't be ridiculous. Do your own work.

  • SQl developer installation and set up the connections

    Hi,
    I m a new learner of Oracle - SQL. My doubt is can i have an test environment( a dummy) connection in SQL developer for my practice purpose in my local laptop.
    Do i need to install Oracle to work with SQL developer in my system.Wat all I should have to fulfill the abve?
    Pls guide from the basic
    Thanks in Advance

    cuteprathyu999 wrote:
    Hi,
    I m a new learner of Oracle - SQL. My doubt is can i have an test environment( a dummy) connection in SQL developer for my practice purpose in my local laptop.
    Do i need to install Oracle to work with SQL developer in my system.Wat all I should have to fulfill the abve?
    Pls guide from the basic
    Thanks in Advance
    SQL Developer is a 'client' tool.  It is pretty much worthless without a database to connect to.  You can't execute SQL statements without a database.  The database can be either on your local machine (where you have installed SQL Dev) or on a remote machine.  To get a database on your own machine, you will need to download Oracle Database, install it, and create a database.  Be sure to read the installation guide for installation prereqs, including certified operating systems.

  • Installation and set-up

    Hello,
    During installations, I got the following error:
    1) 
    Microsoft.SqlServer.Configuration.Sco.DirectoryAttributesMissmatch: Folder C:\Program Files\Microsoft SQL Server has an unsupported attribute (Compressed) set. Please resolve this issue by removing the unsupported attribute from the folder using folder properties
    dialog.
    2)
    Microsoft.SqlServer.Configuration.SetupExtension.CompressedDirException: The specified directory, "C:\Program Files\Microsoft SQL Server\", for the INSTALLSHAREDDIR parameter is not valid because this directory is compressed or is in a compressed
    directory. Specify a directory that is not compressed.
    3)
    Microsoft.SqlServer.Configuration.SetupExtension.CompressedDirException: The specified directory, "C:\Program Files (x86)\Microsoft SQL Server\", for the INSTALLSHAREDWOWDIR parameter is not valid because this directory is compressed or is in a
    compressed directory. Specify a directory that is not compressed.
    Can you help with these errors?

    Hello,
    The following resources show a few ways to list those directories.
    https://superblackbook.wordpress.com/2010/07/20/powershell-list-compressed-dossiersfichiers/
    https://social.technet.microsoft.com/forums/windowsserver/en-US/153c2740-e2b6-47b8-beb1-1da7ba08b1f1/find-compressed-file-or-folders
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How do I get iTunes to recognize my external, wireless-networked hard drive (Western Digital) during installation and set-up of iTunes?

    Hello,
    I'm re-installing iTunes for Windows 7 (64-bit) due to a bug that occured with the iOS7 update.  The Genius Bar recommended that I uninstall and re-install iTunes from scratch.  All of my music is located on a WD external hard drive that's connected wirelessly to my PC.  I didn't have this problem until the iOS update for iphone 5, v.7.0.
    Any help is greatly appreciated.
    Thanks!

    I didn't relate this; now iTunes will not install on my PC when pointed to my external, wireless-networked hard drive.  It appears that it doesn't recognize it.

  • How to Install and Configure Java and Tomcat

    Hi Everybody,
    I am using the following versions of java and tomcat:
    JAVA: j2sdk-1_4_2_13
    Tomcat: jakarta-tomcat-5.0.5
    I tried to configure several times both but everytime the result is the same. I am setting the following variables:
    PATH: .;D:\j2sdk1.4.2_13\bin;D:\Tomcat 5.0\bin
    CLASSPATH: .;D:\j2sdk1.4.2_13\lib;D:\Tomcat 5.0\common\lib\servlet-api.jar
    JAVA_HOME: D:\j2sdk1.4.2_13
    Please correct what mistake i am doing again and again. I appreciate your effort.
    Thanks in advance.
    Himanshu

    Fine sir, I will tell evrything in detail what steps i am following during installation and configuring java and Tomcat.
    1) I am using the following versions(exe) of java and tomcat:
    JAVA: j2sdk-1_4_2_13-windows-i586-p
    Tomcat: jakarta-tomcat-5.0.5
    2) Then, i follow exactly the same variable names and values to configure java as mentioned below to make java work under User variables header:
    PATH: .;D:\j2sdk1.4.2_13\bin
    CLASSPATH: .;D:\j2sdk1.4.2_13\lib
    JAVA_HOME: D:\j2sdk1.4.2_13
    Above steps i follow only for installing java. And it also not working properly. If i run my .java file from the destination of the file then it will be execulted but if i try to execute from any other location then it doesn't, it shows the following message in the DOS prompt:
    error: cannot read: Hello.java
    1 error
    Now, please correct what mistake i am doing.
    Thanks
    Himanshu

  • Setting the classpath

    doing a jsp page which calls for:
    <%@ page import="java.sql.*" %>
    <%@ page import="javax.sql.*" %>
    <%@ page import="sun.jdbc.rowset.*" %>
    <%@ page import="java.util.*;" %>
    at the top of the page , so i downloaded the jar files that i needed and set the classpath to:
    C:\jdk1.3.1_01\rowset.jar;C:\jdk1.3.1_01\jdbc2_0-stdext.jar;C:\jdk1.3.1_01\jndi
    this is the first time ive set the classpath
    but when i run the page i get loads of Error: Could not find package named:
    anyone no what im doing wrong?

    When you say you "set the classpath", does that mean that you changed the system CLASSPATH environment variable, or that you went into the configuration of whatever it is that's running your JSPs and put those jars and directories into the appropriate place?

  • Starting tomcat server after setting classpath for java

    Sorry if this is nothing to do with java, it is more to do with starting tomcat server.
    Tomcat server has been working totally fine, but when I wanted to compile a java servlet I wrote for it, I needed to run a BAT file called gojava in MS-DOS that had the classpath for java to work properly. I then attempted to run Tomcat, but just got 'bad command'. As long as I don't start up java by setting the classpath, tomcat will work, but as I need java to write servlets and then to test them without restarting my PC each time, how do I get tomcat to work?
    Thanks
    Hannah

    Sounds like your batch file is changing your path, not your classpath. If you're getting "Bad command or filename" when attempting to run Tomcat, it can't find the executable. Check out the .bat file and see what it's doing (maybe even post it here for further clarity). If it's changing your path at all, make sure it includes a %path% to indicate that it simply wants to append items to the path, not overwrite it completely. Sorry if i'm way off base with my suggestions, but it sounds like that's where the problem's going to be, especially if rebooting resolves the problem.

  • How to set the classpath and path from the jsp to call  java class function

    Hi Exprets,
    I have a requirement to call a java class function which returns a hashmap object from the jsp. The java class in present in one jar file and that jar file is location somewhere in unix path. So the requirement is to set the classpath for that jar file and then create the object of the java class and then call the function.
    If any one know how to achieve it, please reply as soon as possible.
    thanks in advance,
    swapna soni.

    It is never advisable to store large data sets in the session. But it will depend on a lot of factors:
    1. How costly is the query retrieving the data from the database?
    If it's a complex query with lots of joins and stuff, then it will be better to store it in the session as processing the query each time will take a lot of time and will decrease performance. On the other hand if the query is simple then it's advisable not to store it in the session, and fetch it each time.
    2. Are there chances for the data to become stale within a session?
    In this case storing the data is session will mean holding the stale data till the user session lasts which is not right.
    3. How many data sets does the session already holds?
    If there are large no. of data sets already present in the session, then it's strictly not advisable to store the data in the session.
    4. Does the server employ some kind of caching mechanism?
    Using session cache can definitely improve performance.
    You will have to figure out, what is the best way analyzing all the factors and which would be best in the situation. As per my knowledge, session is the only place where session specific data can be stored.
    Also, another thing, if the data set retrieved is some kind of data to be displayed in reports, then it would be better to use a pagination query, which will retrieve only the specific no. of rows at a time. A navigation provided in the UI will retrieve the next/previous data set to display.
    Thanks,
    Shakti

Maybe you are looking for

  • HT203433 I have done all of the above and neither my IPod or IPad will auto down load book smaples. The Auto switches just turn off after a few seconds.

    I have tried to follow the steps and everything the HELP steps say to do is completed. Yet the slide "on" switches on both the iPad and iPod will not stay in the on position. They immediately slide to off. I get the error message they must be turned

  • How do I change the photo sizes from cm to inches in the new iPhoto share/print?

    When I wish to print a picture from the share/print section of iphoto it lists the available print sizes in cm ie 10 x 15 instead of 4 x 6 inches. I can't seem to find anywhere to select the units that you want to use.  I am using the latest version

  • One Event two actions

    Hi, I would like to know which JavaScript-Code has to be placed where in my document to achieve the following: When the visitor moves his mouse over (event onmouseover) one of six possible buttons 2 actions should be execited:(defined in container na

  • Regarding Support package influence

    hi gurus, I have two questions to ask. 1.whether standard element lists like screen attributes,Fields,tables,Dataelements,Domains attributes differ due to support package different in SAP systems. Please confirm. 2.using FM RS_GET_ALL_INCLUDES to fet

  • Cs6 for color blind people

    Hi, I'm color blind. Which means I can't see color. Dogs are like that too I think... they see in black and white. Something about rods and cones in the eyeball. anyway, I wonder... since I'm about to get into editing etc... if there is a plug in or