1 Reply Latest reply: Apr 9, 2012 10:49 PM by Brian Lavender RSS

Referencing libraries for jfreechart in ear project

Brian Lavender Newbie

I have a question including libraries when creating a Seam project using JBoss Developer Studio.

 

I was looking at the itext example included with Seam-2.2.2-Final. It is in the examples folder. I created a Seam project in JBoss developer studio 4.1.2GA. The name of the project I created is named "mytext", which has the mytext-ear and the mytext-ejb. I copied the java source files from the itext example into the mytext-ejb project.The source could not reference the jfreechart libraries that I can see in the web project. I right clicked "mytext-ear" and I selected "Configure Build Path". I told it to add the libraries from the project "mytext" which has the jfreechart library in its lib folder. Then, the source files could reference the library. Is this the correct way to do this? It seems that the mytext-ejb ought to reference the library directly.

 

Thanks,

 

brian

  • 1. Re: Referencing libraries for jfreechart in ear project
    Brian Lavender Newbie

    I am guessing that since I made this an ear project, that some source files can go into the web project and the entity beans and session beans go into the ejb project? So, it looks like the source files such as JFreeData.java from the itext example could go into the mytext project rather than the mytext-ejb. Maybe I should ask this in the JBoss Developer Studio forum?