jQuery in Action, 3rd edition
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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.


Don't get me started about those stupid light bulbs.
subject: classpath
It's not a secret anymore!