-
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?
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks