Unable to run FirstWebServiceClient.java of SDK 1.4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 12:08 PM
Hello,
I've deployed Alfresco SDK 1.4 on Eclipse IDE and I try to run the sample : FirstWebServiceClient.java.
Once I repaired all the build errors, I Click on "Run as" -> "Java Application" and I obtain the following errors :
Does Anyone know where those errors come from and how to deal with it?
Thanks!
I've deployed Alfresco SDK 1.4 on Eclipse IDE and I try to run the sample : FirstWebServiceClient.java.
Once I repaired all the build errors, I Click on "Run as" -> "Java Application" and I obtain the following errors :
Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: org.alfresco.webservice.util.WebServiceFactory at java.lang.VMClassLoader.transformException(java.lang.Class, java.lang.Throwable) (/usr/lib/libgcj.so.6.0.0) at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.6.0.0) at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0) at org.alfresco.webservice.util.AuthenticationUtils.startSession(java.lang.String, java.lang.String) (Unknown Source) at org.alfresco.sample.FirstWebServiceClient.main(java.lang.String[]) (Unknown Source) at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0) at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)Caused by: java.lang.ClassNotFoundException: java.lang.StringBuilder not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/samples/FirstWebServiceClient/build/,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/activation.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/axis.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/bcprov-jdk15-129.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/commons-discovery-0.2.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/commons-logging.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/jaxrpc.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/mail.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/opensaml-1.0.1.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/saaj.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/wsdl4j-1.5.1.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/wss4j.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/xalan-2.6.0.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/dependencies/xmlsec-1.2.1.jar,file:/home/zmahieddine/Desktop/alfresco-community-sdk-1.4.0/lib/remote/web-service-client.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0) at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.6.0.0) at java.lang.ClassLoader.loadClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0) at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0) …6 more
Does Anyone know where those errors come from and how to deal with it?
Thanks!
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2007 09:35 AM
Looks like it can't find the project SDK AlfrescoRemote.
Make sure the SDK FirstWebServiceClient references that project.
Make sure the SDK FirstWebServiceClient references that project.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2007 09:38 AM
My problem was that My JDK was not the sun's 1.5 one…
The problem is resolved know I have changed it.
However, thank you for the response.
The problem is resolved know I have changed it.
However, thank you for the response.
