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
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".

...\gdata\java\sample\commandline\lib>java -jar commandline.jar
retrieve --protocol=http --hostname=gsaxxx --username=xxxx --
password=xxxx --port=8000 config crawlURLs

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
Reply all
Reply to author
Forward
0 new messages