GSA Admin API (Java) error when trying the commandline sample
0 views
Skip to first unread message
Andor
unread,
Nov 25, 2009, 2:35:41 PM11/25/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
Hi,
Did anyone try the GSA Admin API (Java) sample -> commandline? Tried
to call the "commandline.jar" directly but getting Exception
"NoClassDefFoundError".
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/
enterprise/apis/client/GsaClient
at sample.commandline.Command.initClient(Command.java:143)
at sample.commandline.Command.init(Command.java:62)
at sample.commandline.GsaCommandLine.main(GsaCommandLine.java:
70)
Caused by: java.lang.ClassNotFoundException:
com.google.enterprise.apis.client.GsaClient
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
316)
... 3 more