Geeks Talk

Prepare for your Next Interview




path & classpath

This is a discussion on path & classpath within the Java forums, part of the Software Development category; how can i diffirentiate the path and class path in java...


Go Back   Geeks Talk > Software Development > Java

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-22-2008
Junior Member
 
Join Date: Dec 2007
Location: india
Posts: 7
Thanks: 3
Thanked 2 Times in 1 Post
komakula Ravindranath is on a distinguished road
Smile path & classpath

how can i diffirentiate the path and class path in java
Reply With Quote
The Following 2 Users Say Thank You to komakula Ravindranath For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 06-23-2008
Junior Member
 
Join Date: Jan 2008
Location: India
Posts: 19
Thanks: 0
Thanked 3 Times in 1 Post
kumarprabu is on a distinguished road
Smile Re: path & classpath

Hi

Path is normal cmd prompt command. using this commend u can located where the exe file is located.

for ex: if u have ur javac.exe file in C:\program file\java\jdk1.5.0\bin means

if u want to run this in any where of ur cmd prompt means u want set path=C:\program files\java\jdk1.5.0\bin

and classpath is used for when u compiling java program at the time u want to include some jar files using classpath u can include that file.

for example suppose if u want to compile one servlet file means u want to incluce that file like this.
javac -classpath=C:\program files\apache\tomcat5.0\common\lib\servelet-api.jar testservlet.java

suppose if u have more servlet file u want to compile all the file means u set the classpath using set classpath keyword in ur commend pronmpt like this

set classpath=C:\program files\apache\tomcat5.0\common\lib\servelet-api.jar

once u set like that means u can compile all program without mention the classpath in ur java commend. like this u can compile

javac testservlet.java

thnx bye if u have any doubt reply
Reply With Quote
The Following 3 Users Say Thank You to kumarprabu For This Useful Post:
  #3 (permalink)  
Old 3 Weeks Ago
Junior Member
 
Join Date: Aug 2008
Location: satna
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
getiak chaurasia is on a distinguished road
Post Re: path & classpath

What difference between single and multi threaded servlet
Reply With Quote
Reply

  Geeks Talk > Software Development > Java


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Absolute path and Relative path Anthonymcg Unix/Linux 2 07-26-2008 08:27 AM
What is Access Path Lokesh M Data Warehousing 0 01-31-2008 05:59 AM
How to set a classpath with jar file Geek_Guest Java 1 10-22-2007 08:00 AM
Unable to select the right path anilsram Career Advice 1 03-04-2007 05:13 AM
ClassPath and Module Dependencies in WebSphere Lokesh M Web Servers 0 06-21-2006 12:02 AM


All times are GMT -4. The time now is 11:30 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved