+ Start a Discussion
sfdctrrsfdctrr 

wsdlc utility throws "Exception in thread "main" java.lang.NoClassDefFoundError: ûclasspath"

HI Folks,

 

I'm using wsdlc utility to generate classes from my enterprise wsdl but it throws following error:

 

 

Exception in thread "main" java.lang.NoClassDefFoundError: ûclasspath
Caused by: java.lang.ClassNotFoundException: ûclasspath
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)
Could not find the main class: ΓÇôclasspath. Program will exit.

 

I'm using jdk 1.6 & wsc-22. jar file.

 

i set my claspath of wsc-jar and jdk but syill throws above error. Is this error relaed to Java or wsc.jar.

 

Any Help Appreciated.

 

Thanks in advance.

Abhinav GuptaAbhinav Gupta

Hope you are trying like this 

 

    java -Dpackage-prefix=wsc -classpath wsc.jar com.sforce.ws.tools.wsdlc enterprise.wsdl enterprise.jar

 

sfdctrrsfdctrr

Hi

Thanks for your reply.

 

The problem was with the character "-" which is preceeded by classpath, so i just deleted that hyphen and again typed the new hyphen, it works well.

 

Thankyou All.

kamal somu akamal somu a
@sfdctrr Thank you. It worked for me as well after trying your solution by removing the hyphen.