J
Jerry Manner
Hi
I have a bat file which I want to use to kick of a java class. The bat
file looks like this:
set domino=C:\runagent\NCSO.jar;c:\runagent\notes.jar;c:\runagent;.;c:
\lotus\notes
cd\
java.exe -classpath %domino%;. Java.RunAgent.src.runAgent
PAUSE
Each time I try to run the bat file I receive this error message:
C:\>java.exe -classpath C:\runagent\NCSO.jar;c:\runagent\notes.jar;
;c:\lotus\notes;. Java.RunAgent.src.runAgent
Exception in thread "main" java.lang.NoClassDefFoundError: Java/Run
Agent
Caused by: java.lang.ClassNotFoundException: Java.RunAgent.src.runA
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Metho
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Sourc
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
The strange thing is that when I use Eclipse to run the same java
class I don´t receive any error and the code of the class is running
without any problem. So the problem must be the code in the bat file.
Can someone tell me whats wrong with the bat file?
Any help will be appreciated
Regards
I have a bat file which I want to use to kick of a java class. The bat
file looks like this:
set domino=C:\runagent\NCSO.jar;c:\runagent\notes.jar;c:\runagent;.;c:
\lotus\notes
cd\
java.exe -classpath %domino%;. Java.RunAgent.src.runAgent
PAUSE
Each time I try to run the bat file I receive this error message:
C:\>java.exe -classpath C:\runagent\NCSO.jar;c:\runagent\notes.jar;
;c:\lotus\notes;. Java.RunAgent.src.runAgent
Exception in thread "main" java.lang.NoClassDefFoundError: Java/Run
Agent
Caused by: java.lang.ClassNotFoundException: Java.RunAgent.src.runA
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Metho
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Sourc
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
The strange thing is that when I use Eclipse to run the same java
class I don´t receive any error and the code of the class is running
without any problem. So the problem must be the code in the bat file.
Can someone tell me whats wrong with the bat file?
Any help will be appreciated
Regards