This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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.

Consider Paul's rocket mass heater.
subject: classpath
Similar Threads
server not found
Error on deploying the web service
Help me in tree structure ???????????????????????
Using CachedRowSet