views:

1228

answers:

3

soapui.bat Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cl i/CommandLineParser

Where can I find this library? I already put JAVA HOME to my sdk and I am using windows XP. Any ideas how I can resolve this?

A: 

Sounds like you don't have the Apache Commons CLI JAR in your CLASSPATH. Add it to your Eclipse project and see what the next problem will be. I'm guessing that you're missing more than one JAR, so you'll have to repeat this until your CLASSPATH issues all go away.

duffymo
+1  A: 

resolved needed to put correct path to jdk 1.6 and soapui in the batch file soapui.bat

Ayrad
+3  A: 

it works fine with jdk 1.5. Only things is jar files are not getting added to classpath with ..\lib*

Add below lines in 'soapui.bat' (for windows XP),

setlocal ENABLEDELAYEDEXPANSION
if defined CLASSPATH (set CLASSPATH=%CLASSPATH%;.) else (set CLASSPATH=.)
FOR /R ..\lib %%G IN (*.jar) DO set CLASSPATH=!CLASSPATH!;%%G

This will append the classpath with all the jars present in ..\lib

Amol Jadhav