#1
|
|||
|
|||
How to execute Java Batch File
I am trying to execute a Batch file through the "BatchFile" Action/Step and I get the following error:
java.lang.NoClassDefFoundError: fitnesse/FitNesse Caused by: java.lang.ClassNotFoundException: fitnesse.FitNesse at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) Could not find the main class: fitnesse.FitNesse. Program will exit. Exception in thread "main" Press any key to continue . . . The Batch file uses the java runtime and works great from Windows Explorer but apparently I have to initialize the RT from inside VBP. This is my batch file content: java -cp fitnesse.jar fitnesse.FitNesse -p 8089 %1 %2 %3 %4 %5 pause Any thoughts on how to accomplish that? Thanks, Rodrigo |
|
|