Problem using the jar files gdata-base-1.0.jar & gdata-client-1.0.jar

2 views
Skip to first unread message

Well Wisher

unread,
Apr 19, 2007, 9:39:16 AM4/19/07
to Google Data API, san...@wirkle.com
-- Source file --
/**
* HelloWorld.java
*/
public class HelloWorld{

public static void main(String[] args){

System.out.println("Hello world!");
}
}

--- On the Console --
#> javac HelloWorld.java
#> java HelloWorld
Hello world!
#> java -classpath gdata-base-1.0.jar;gdata-client-1.0.jar HelloWorld
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld

--- Configuration ---
OS: Microsofy Windows XP, Professional
Java: 1.5.0_07

-- -- -- -- -- -- -- -- -- --
What could the problem be?

--
Santosh.

Lane LiaBraaten (Google)

unread,
Apr 19, 2007, 10:49:53 AM4/19/07
to Google Data API
Hi Santosh,

Looks like you don't have the current directory on your classpath.
Try this:

java -classpath .;gdata-base-1.0.jar;gdata-client-1.0.jar HelloWorld

Wish you well,
-Lane

Well Wisher

unread,
Apr 20, 2007, 1:41:31 AM4/20/07
to Google Data API
Sorry my bad! It worked.
Thanks alot.

Google Data API has dependencies on other libraries too. Is it
mentioned anywhere?

On Apr 19, 7:49 pm, "Lane LiaBraaten (Google)"

Well Wisher

unread,
Apr 20, 2007, 1:43:53 AM4/20/07
to Google Data API
By bad again :(
It is mentioned in INSTALL.txt

Santosh.

Reply all
Reply to author
Forward
0 new messages