Topic
  • No replies
BuddMc
BuddMc
1 Post

Pinned topic java.lang.NoClassDefFoundError

‏2012-01-27T14:56:43Z |
I have written a java app called FileMover. I compiled it and put it into a shellecript. I can run the shellscript from the Linux command prompt, but when I try to execute from within an Antscript on MQFTE 7.0.2. and am getting the following errors:
<stderr>
<line>Exception in thread "main" java.lang.NoClassDefFoundError: FileMover</line>
<line> at gnu.java.lang.MainThread.run(libgcj.so.7rh)</line>
<line>Caused by: java.lang.ClassNotFoundException: FileMover not found in gnu.gcj.runtime.SystemClassLoader{urls=, parent=null}}</line>
<line> at java.net.URLClassLoader.findClass(libgcj.so.7rh)</line>
<line> at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)</line>
<line> at java.lang.ClassLoader.loadClass(libgcj.so.7rh)</line>
<line> at java.lang.ClassLoader.loadClass(libgcj.so.7rh)</line>
<line> at gnu.java.lang.MainThread.run(libgcj.so.7rh)</line>
</stderr>

What do I need to do to resolve this ?

thanks in advance.