Media specific APIs to install for FinancePortfoliosClient.java applic ?

18 views
Skip to first unread message

Chavadam

unread,
Oct 18, 2011, 10:38:36 AM10/18/11
to gdata-java-client
Hello.
It's my first trial of GData Java Client and Google Finance API.

In http://code.google.com/p/gdata-java-client/source/browse/trunk/INSTALL-src.txt
and INSTALL-samples.txt ... following external utilities/libraries ...
1. Java Development Kit version 5.0 or greater.
2. Apache ANT version 1.7 or greater.
3. mail.jar in Sun's JavaMail API (version 1.4 or greater).
This is only required for media specific APIs including Google Base
data API,
Document List data API, Picasa Web Album API and YouTube data API.
4. activation.jar in Sun's JavaBeans Activation Framewrok.
This is required only if using JDK version 1.5.
This is only required for media specific APIs including
Google Base data API, Document List data API, Picasa Web Album API
and
YouTube data API.
5. servlet.jar in Sun's Servlet API (version 2.3 or greater).
This is required only if executing code samples in 'sample.authsub'
or
'sample.gbase.recipe' packages.

I'm just wanting to test the 'FinancePortfoliosClient.java' sample
application, to see how the downloading of some Google stock market
data in a little Java application works.
Could anybody confirm me that it has nothing to do with the mentioned
'media specific APIs'
- Google Base data API,
- Document List data API,
- Picasa Web Album API and
- YouTube data API
and that I don't need subsequently to install these external utilities/
libraries ?

Also, I should not use the ant of Apache because I'm developping in
NetBeans IDE, right ?

Thanks for an answer

P.S.: I'm using
- System: Windows XP Pro SP2 version 5.1 running on x86; Cp1252; fr_BE
(nb)
- Java: 1.6.0_22; Java HotSpot(TM) Client VM 17.1-b03 ; and its
included JRE (C:\Program Files\Java\jdk1.6.0_22\jre)
- NetBeans IDE 7.0.1
- Apache-Maven 3.0.3 (r1075438)
- Apache Tomcat 7.0.11 (NetBeans IDE download bundle 'Java EE' in
http://netbeans.org/downloads/ )
on my old desktop PC (ASUSTek A8V-E Deluxe motherboard and AMD
Athlon(tm) 64 Processor 3500+ ...)

Chavadam

unread,
Oct 21, 2011, 8:26:53 AM10/21/11
to gdata-java-client
I answer 90% myself :

1) External utilities/libraries to get the
'FinancePortfoliosClient.java' sample application running:
Indeed no 'media specific APIs',
thus nor mail.jar in Sun's JavaMail API,
nor activation.jar in Sun's JavaBeans Activation Framework,
nor servlet.jar in Sun's Servlet API

2) The sole necessary libraries for the 'FinancePortfoliosClient'
application to run are:
- gdata-finance-2.0.jar for import
com.google.gdata.client.finance.FinanceService; etc.
- gdata-core-1.0.jar for import com.google.gdata.data.BaseEntry; etc.
- gdata-client-1.0.jar for import
com.google.gdata.data.extensions.Money; etc.
- gdata-core-1.0.jar for import
com.google.gdata.util.AuthenticationException; etc.

3) Of course, this application makes use of other existing classes of
Google Data API which also request some libraries, like
- 'altRegistry.java' needs 'com.google.common.collect.Maps' of 'google-
collections jar' Where can I find this Google library ?

4) Is there really anybody reading this gdata discussion group ?
Because it is my 3rd message, and none were anwered ...
Thanks

On 18 okt, 16:38, Chavadam <chava...@gmail.com> wrote:
> Hello.
> It's my first trial of GData Java Client and Google Finance API.
>
> In http://code.google.com/p/gdata-java-client/source/browse/trunk/INSTAL...
> and INSTALL-samples.txt ... following external utilities/libraries ...
> 1. Java Development Kit version 5.0 or greater.
> 2. Apache ANT version 1.7 or greater.
> 3. mail.jar in Sun's JavaMail API (version 1.4 or greater).
>    This is only required for media specific APIs including Google Base
> data API, Document List data API, Picasa Web Album API and YouTube data API.
> 4. activation.jar in Sun's JavaBeans Activation Framework.

Chavadam

unread,
Oct 23, 2011, 2:36:50 AM10/23/11
to gdata-java-client
Good day.
Closing the point myself:

'altRegistry.java' needs 'com.google.common.collect.Maps' of 'google-
collections jar'.
http://code.google.com/p/gdata-java-client/issues/detail?id=180
guava.jar replaces today google-collections jar
Download guava-r07.zip and use guava-r07.jar in our libraries.

Hoping this helps a lost soul in the 'Google Finance group' desert.

Cheers
Reply all
Reply to author
Forward
0 new messages