function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
beta1beta.ax97beta1beta.ax97 

Enterprise4.0 compile

Hello I not sure want I am  doing wrong but, but  i havent been able to make the enterprise 4.0 example run.

When I run it form the Sample directory it gives me wrong name error o something like that.

I tryed to run it from  the bin directory with command "java com.salesforce.sample.Sample " but I get this error

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/ax
ault
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        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)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        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)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)

I am new in Java, and I am not sure if I have missed something or maybe I am not declaring the classpath well. Where can I Start to check ?

Thanks for the help. I will appreciate a hand on this.

Regards

onthebeachonthebeach
Did you put the axis jars in your classpath?


onthebeach
beta1beta.ax97beta1beta.ax97

Sorry, I am quiet sure I am not doing that step right. How do I inlcude thoses files in my classpath ?

I have a directory named axis and within it a bin where I can find the jar files, but where do I inlcude them, I am separted file ? in widows enviroment variables ? where ?

Lots of thanks

TRF

onthebeachonthebeach
Control panel > system > advanced > environment variables > system variables. Add/modify the classpath variable. You have to add an entry for each jar file.

Or, you could pass this parameter to "java" on the command line: -Djava.ext.dirs=/path/to/jars/. I like this method because it sucks up any jar in the directory you provide.


onthebeach