Hi Miguel,

at first the important thing: unfortunately the charts4j library
cannot be used on the client side of a GWT app. It uses some JRE types
that are not supported by the GWT compiler.

Now just a short explaination how I made the module run in the first
place. You need to create a proper GWT module from the library you
want to use. That is valid for all 3rd party libraries, not only
charts4j. In my Eclipse project I created an additional source path
and copied the source of charts4j into it. Than I created a
"charts4j.gwt.xml" in the folder "com/googlecode" containing:
<module>
    <source path="charts4j" />
</module>

With this source tag you're telling the GWT compiler to look in the
charts4j package for the source code. Than you need to inherit this
newly created GWT package inside your application by adding the
following line to your application.gwt.xml:
<inherits name="com.googlecode.charts4j"/>

I'll now try to look at an old gwt port of the charts4j library:
http://code.google.com/p/gwt-gchartjava/ or use the lib on the server
side where the GWT compiler restictions dont apply.

Cheers
Michael

On 17 Feb., 13:19, micha <[email protected]> wrote:
> Hi Miguel,
>
> I opened a post directly in the charts4j 
> forums:http://groups.google.com/group/google-chart-api/browse_thread/thread/...
>
> Did u used some other library instead?
>
> Regards
> Michael
>
> On 16 Feb., 18:04, Lonifasiko <[email protected]>; wrote:
>
> > Hi Michael,
>
> > I'm afraid I did not find a solution, in fact, seems really strange to
> > me that anybody did not reply to this post, even to ask some more
> > details.....
>
> > Thus, seeing this unusual "un-interest" for Charts4j, I directly
> > forgot about using this graphs inside GWT. A pity......
>
> > Sorry but that has been my negative experience......
>
> > Hope you achieve a bit more possitive results, or at least, a reply
> > from somebody ;-). In case you do it, please do let me know.
>
> > Best regards,
>
> > --
> > Miguel
> > Blog:http://lonifasiko.blogspot.com
>
> > On 16 feb, 10:51, micha <[email protected]>;; wrote:
>
> > > Hi Miguel,
>
> > > did you find a solution for this problem? I'm facing excactly the same
> > > error...
> > > I've already added the .java-Files into the "charts4j-1.0.jar"-File
> > > without success.
>
> > > Regards
> > > Michael
>
> > > On 19 Jan., 16:10, Lonifasiko <[email protected]>;; wrote:
>
> > > > Hi, I'm not able to use chart4j chart library under GWT project
> > > > anyway. I've added .jar file to the classpath of the project and then
> > > > I've implemented a simple linechart example with source code from the
> > > > web.
>
> > > > When launching my GWT application, Tomcat hosted mode AS throws an
> > > > exception telling me that  "No source code is available for type
> > > > com.googlecode.charts4j.Line; did you forget to inherit a required
> > > > module?"
>
> > > > There are many more errors referencing other classes under charts4j
> > > > package...
>
> > > > When saw this inheritance related error, I thought would be as easy as
> > > > adding an inherit module in application's "gwt.xml" configuration
> > > > file, just as I've done for other chart libraries, then I added:
>
> > > > <inherits name="com.googlecode.Charts4j" />
>
> > > > Well, this way Tomcat throws another exception saying that "Unable to
> > > > find 'com/googlecode/Charts4j.gwt.xml' on your classpath; could be a
> > > > typo, or maybe you forgot to include a classpath entry for source?"
>
> > > > Has anybody successfully configured and showed charts4j charts under
> > > > GWT application?
>
> > > > Thanks very much in advance.
>
> > > > --
> > > > Miguel
> > > > Blog:http://lonifasiko.blogspot.com
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to