Build Data Source Java Library using Java v1.5

39 views
Skip to first unread message

tamsler

unread,
Sep 22, 2009, 8:10:58 PM9/22/09
to Google Visualization API
Has anybody build the Data Source Java Library using Java v1.5.
According to the installation instructions, this is possible:

http://code.google.com/apis/visualization/documentation/dev/dsl_install.html#build_self

"Note: It is also possible to use the JDK version 5.0. However, you
must then remove @Override from every method in the library that
overrides an interface method. This is due to the change in the
@Override annotation behavior in JDK version 6.0."

Best,
-- Thomas

PASUPULETI SURESH

unread,
Sep 22, 2009, 9:24:37 PM9/22/09
to google-visua...@googlegroups.com
I have started using the Java source library using jdk 1.5 with
customization. I had to get the source code and change the annotation
part to recompile using jdk1,5.I would say it is a kind of customising
the source code to jdk 1.5.Since the jars are provided for jdk 1.6.

Thanks
Suresh

tamsler

unread,
Sep 22, 2009, 9:41:35 PM9/22/09
to Google Visualization API
Is that v1.5 compatible library available? If not I will create one as
well and make it available.
Best,
Thomas

On Sep 22, 6:24 pm, PASUPULETI SURESH <suresh.pasupul...@gmail.com>
wrote:
> I have started using the Java source library using jdk 1.5 with
> customization. I had to get the source code and change the annotation
> part to recompile using jdk1,5.I would say it is a kind of customising
> the source code to jdk 1.5.Since the jars are provided for jdk 1.6.
>
> Thanks
> Suresh
>
>
>
> On Tue, Sep 22, 2009 at 5:10 PM, tamsler <tams...@gmail.com> wrote:
>
> > Has anybody build the Data Source Java Library using Java v1.5.
> > According to the installation instructions, this is possible:
>
> >http://code.google.com/apis/visualization/documentation/dev/dsl_insta...

Suresh

unread,
Sep 22, 2009, 10:20:49 PM9/22/09
to Google Visualization API
As for as i know it is not available but could wait for Google
employee response.

VizGuy

unread,
Sep 23, 2009, 3:35:34 AM9/23/09
to google-visua...@googlegroups.com
Hi,

1. The change in the code to make it compile on 1.5 is very simple. It should take you a few minutes to change the code, and build it.
2. In the future releases, we will try to provide jars for both 1.5 and 1.6 (but with only one version of the source code, for 1.6). This means that if you want to modify the code for your use with 1.5, you will have to do the extra 2 minutes documented changes (but again, its really two minutes).

Regards,
VizGuy

tamsler

unread,
Sep 23, 2009, 12:29:10 PM9/23/09
to Google Visualization API

Please see inline comments bellow:

On Sep 23, 12:35 am, VizGuy <viz...@google.com> wrote:
> Hi,
> 1. The change in the code to make it compile on 1.5 is very simple. It
> should take you a few minutes to change the code, and build it.

Yes it's very simple. Here is what I did:

svn co http://google-visualization-java.googlecode.com/svn/tags/release-1.0.2
gv-1-0-2
edit gv-1-0-2/pom.xml
From:
<configuration>
<source>1.6</source>
<target>1.5</target>
</configuration>
To:
<configuration>
<source>1.6</source>
<target>1.5</target>
</configuration>


Then edited the source in eclipse find/replace "@Override" --> ""
Note: To easily import the source into eclispe do a "mvn
eclipse:eclipse" in gv-1-0-2.

Then I built it:
cd gv-1-0-2
mvn clean install
... This places the the newly built JAR into your maven repository.

> 2. In the future releases, we will try to provide jars for both 1.5 and 1.6
> (but with only one version of the source code, for 1.6). This means that if
> you want to modify the code for your use with 1.5, you will have to do the
> extra 2 minutes documented changes (but again, its really two minutes).

That would be great. Thank you.

>
> Regards,
> VizGuy

tamsler

unread,
Sep 23, 2009, 12:37:18 PM9/23/09
to Google Visualization API
I have a type above, the pom.xml changes are:

edit gv-1-0-2/pom.xml
From:
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
To:
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>


On Sep 23, 9:29 am, tamsler <tams...@gmail.com> wrote:
> Please see inline comments bellow:
>
> On Sep 23, 12:35 am, VizGuy <viz...@google.com> wrote:
>
> > Hi,
> > 1. The change in the code to make it compile on 1.5 is very simple. It
> > should take you a few minutes to change the code, and build it.
>
> Yes it's very simple. Here is what I did:
>
> svn cohttp://google-visualization-java.googlecode.com/svn/tags/release-1.0.2

tamsler

unread,
Sep 23, 2009, 1:09:53 PM9/23/09
to Google Visualization API
Please see inline comment bellow:

On Sep 23, 12:35 am, VizGuy <viz...@google.com> wrote:
> Hi,
> 1. The change in the code to make it compile on 1.5 is very simple. It
> should take you a few minutes to change the code, and build it.
> 2. In the future releases, we will try to provide jars for both 1.5 and 1.6
> (but with only one version of the source code, for 1.6). This means that if
> you want to modify the code for your use with 1.5, you will have to do the
> extra 2 minutes documented changes (but again, its really two minutes).


The v1.6 based library is available via the maven repository. Will
this be true for the v1.5 one?
-- Thomas

VizGuy

unread,
Sep 23, 2009, 3:09:17 PM9/23/09
to google-visua...@googlegroups.com
I hope so, but we will finalize the details soon.
We haven't looked at this yet at all, but I guess it should all be simple. We didn't do it before because we didn't think there is real need (from you), but apparently there is, and so we will try.

If it will not be simple, we will rethink about it, but give us a few weeks.

For now, the instructions above in this thread are very clear and simple.


Regards,
VizGuy
Reply all
Reply to author
Forward
0 new messages