Hi, Why when I run my batch file do I get this error: Exception in thread "main" java.lang.NoClassDefFoundError: DocumentClient I type it in DOS from the directory where it is and it still does not work. Yes, there is a main method and I can run it from within Forte just fine. the batch file looks like this: java DocumentClient
thanks, Steve
Rikard Qvarforth
Ranch Hand
Joined: Jul 10, 2001
Posts: 107
posted
0
if i got your question right.. you could add the -classpath parameter to the bat file ex java -classpath c:\whatever yourclassfile Hope it helps Rille
steve dowdall
Ranch Hand
Joined: May 23, 2001
Posts: 36
posted
0
What if my class file called DocumentClient is in a package like this: package com.company.document how do I set the classpath and call it from a batch file? Steve