Problem with the Batch files

K

kapzz

hi,

Actually iam trying to write a java program and try to execute that
using the batch file.


batch file code:
echo starting daily agent
cd "C:\Program Files\Apache Tomcat 4.0\webapps\test1\WEB-INF\classes\"
java DailyAgent


i have stored that java file in the the path as mentioned above and
then i have given the path in the batch file and then trying to execute
the file. when i execute the by clicking in the batch file directly
which is in the c drive it is running properly but when i try to run
that from the cmd prompt it gives me the error stating that
noclassfoundexception

plz help me out its urgent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top