java path


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: java path

  1. #1
    feroz Guest

    java path


    hello sir,

    I am beginner of java.

    For running java code we want to set path (path=%path%;c:/jdk1.2/bin)
    this for calling java classes from any directory.

    For running java servlet(jsdk) we want to set path as well as class path.

    1.what is classpath?
    2.why we want to set classpath?
    3.how to set classpath for servlet?
    4.why we don't set for jdk?


  2. #2
    Rajkamal Gopinath Guest

    Re: java path


    hi,

    CLASSPATH is an environmental used by your JAVA RUNTIME ENVIRONMENT to locate
    classes which are not part of the JDK Installation.

    Servlets related classes are not part of Standard JDK1.2 so we need to add
    references to it since it is contained in an external jar file JSDK.JAR;.

    For Servlets locate the path for JSDK.JAR in your JSDK Installation and add
    it to the CLASSPATH

    For JDK we don't need to set the path because the standard installation knows
    exactly where to find the standard library classes which will be normally
    inside lib directory of your JDK HOME

    I would suggest to use TOMCAT Server to try servlets & jsp

    http://jakarta.apache.org/tomcat/index.html here is the link...

    Regards

    Raj















    "feroz" <ferozismail@yahoo.com> wrote:
    >
    >hello sir,
    >
    > I am beginner of java.
    >
    > For running java code we want to set path (path=%path%;c:/jdk1.2/bin)
    >this for calling java classes from any directory.
    >
    >For running java servlet(jsdk) we want to set path as well as class path.
    >
    >1.what is classpath?
    >2.why we want to set classpath?
    >3.how to set classpath for servlet?
    >4.why we don't set for jdk?
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center