File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "classpath" Watch "classpath" New topic


sangeeta kapoor
Ranch Hand

Joined: Jun 15, 2004
Posts: 70
I am running a class from command prompt like this

java -classpath "C:\Tomcat 5.0\webapps\smart_banking\WEB-INF\lib\ctbondemandrequest_impl.jar;C:\Tomcat 5.0\webapps\smart_banking\WEB-INF\lib\rtf.jar;" com.initprocess.InitProcessMethod -docbase_name rtt_banking -user_name dmadmin -ticket h123

but the problem is that with this command the existing classpath gets lost and only the classpath in this command is considered. How can I make sure that existing classpath is not lost.
karthikeyan Chockalingam
Ranch Hand

Joined: Sep 06, 2003
Posts: 259
Can you please try appending the existing CLASSPATH variable as below.

I agree. Here's the link:
subject: classpath
jQuery in Action, 3rd edition