You need to sign in to do that
Don't have an account?
Venkatesh.ax1803
Enterprise.jar issue
i am trying to create enterprise.jar form enterprise.wsdl file, but getting follwoing error
C:\Users\vpuppala002\Desktop\Jar files>"C:\Program Files\Java\jdk1.7.0_51\bin\ja
va" -classpath .\force-wsc-29.0.0.jar com.sforce.ws.tools.wsdlc .\enterprise.wsd
l .\enterprise.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/stringtemplate/v4
/STGroupDir
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
at java.lang.Class.getMethod0(Class.java:2774)
at java.lang.Class.getMethod(Class.java:1663)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: org.stringtemplate.v4.STGroupDir
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
i did not understand why this class errors i am getting ?
C:\Users\vpuppala002\Desktop\Jar files>"C:\Program Files\Java\jdk1.7.0_51\bin\ja
va" -classpath .\force-wsc-29.0.0.jar com.sforce.ws.tools.wsdlc .\enterprise.wsd
l .\enterprise.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/stringtemplate/v4
/STGroupDir
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
at java.lang.Class.getMethod0(Class.java:2774)
at java.lang.Class.getMethod(Class.java:1663)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: org.stringtemplate.v4.STGroupDir
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
i did not understand why this class errors i am getting ?
Please check the following thread - it has the solution to the same problem faced by one other user:
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008zLZIAY
Let us know if this helps you else share your feedback..