I have created a jar file;
There is just one class in it called XMLUtils
My manifest is ;
When I run as;
i get;
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
at XMlUtils.removeNS(XMlUtils.java:286)
at XMlUtils.main(XMlUtils.java:304)
if i run it in a batch file thus;
it works fine.
I presume I doing something silly but what?
Any help appreciated.
Regards
There is just one class in it called XMLUtils
My manifest is ;
Code:
Manifest-Version: 1.0
Class-Path: ".;C:\Documents and Settings\a995085\.m2\repository\commons-io\commons-io\1.4\commons-io-1.4.jar"
Main-Class: XMlUtils
When I run as;
Code:
java -jar XMLUtils.jar C:/47670436.xml C:/Scenario6.xml C:/BK1.xml
i get;
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
at XMlUtils.removeNS(XMlUtils.java:286)
at XMlUtils.main(XMlUtils.java:304)
if i run it in a batch file thus;
Code:
echo off
cd projects\XMLUtils\bin\
SET CLASSPATH=".;C:\Documents and Settings\a995085\.m2\repository\commons-io\commons-io\1.4\commons-io-1.4.jar"
java -cp %CLASSPATH% XMlUtils C:/47670436.xml C:/Scenario6.xml C:/BK1.xml
it works fine.
I presume I doing something silly but what?
Any help appreciated.
Regards