Results 1 to 10 of 10
- 04-25-2012, 08:44 PM #1
Member
- Join Date
- Feb 2012
- Posts
- 66
- Rep Power
- 0
Deploying Application Using JFreeChart Library
Hi all,
I'm fairly new to concepts of Java Libraries, so forgive me if this is obvious.
I'm developing an application to be distributed to users as a .jar file and would like to use JFreeChart as part the development. Will users need to download/install/configure the JFreeChart library in order to use my .jar? I'd really like to leverage this tool, and would very much like to avoid coding all my charts in swing. Any constructive input is highly appreciated. Thanks!
- 04-26-2012, 12:00 AM #2
Senior Member
- Join Date
- Apr 2012
- Posts
- 199
- Rep Power
- 0
Re: Deploying Application Using JFreeChart Library
Look at post #16 at Trying to plot a 1D array vs another 1D array....
- 04-26-2012, 12:04 AM #3
Senior Member
- Join Date
- Apr 2012
- Posts
- 199
- Rep Power
- 0
Re: Deploying Application Using JFreeChart Library
Also, look at post #9 at Graphs in Java.
- 04-26-2012, 12:58 AM #4
Member
- Join Date
- Feb 2012
- Posts
- 66
- Rep Power
- 0
Re: Deploying Application Using JFreeChart Library
Thank you, shall. I found post #16 informative per link: Eclipse IDE Tutorial
So to make sure what I understand from vogella's helpful instructions, if I add the JFreeChart library, which is distributed as a .jar to my project, I can utilize it's classes in my own code. Then when I export my own project as a runnable .jar to the end user, the application will contain the JFreeChart library. Most importantly, the end user won't have to do anything special to use my app because the library is contained in my exported application. Correct? :)
- 04-26-2012, 01:39 AM #5
Senior Member
- Join Date
- Apr 2012
- Posts
- 199
- Rep Power
- 0
Re: Deploying Application Using JFreeChart Library
for Netbeans, the libraries are put in directory called lib and if you look inside the jar, you will see the libraries in the lib directory.
I haven't work with eclipse enough to know whether eclipse does the same, but I would think the libraries would have to be in the jar file.
- 04-26-2012, 01:52 AM #6
Re: Deploying Application Using JFreeChart Library
Why do they call it rush hour when nothing moves? - Robin Williams
- 04-26-2012, 04:05 AM #7
Member
- Join Date
- Feb 2012
- Posts
- 66
- Rep Power
- 0
Re: Deploying Application Using JFreeChart Library
db, care to weigh in on my post #4? Specifically regarding end user-side?
- 04-26-2012, 06:52 AM #8
Re: Deploying Application Using JFreeChart Library
Since this is now an Eclipse related question, I'm moving it from AWT/Swing. It was never an AWT/Swing question in the first place.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 04-26-2012, 08:48 AM #9
Senior Member
- Join Date
- Apr 2012
- Posts
- 199
- Rep Power
- 0
- 04-26-2012, 09:37 AM #10
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Re: Deploying Application Using JFreeChart Library
You would need to provide the user with the JFreeChart jar as well.
Probably using the same structure as Netbeans does, which is:
You could distribute that <app-folder> as a zip and simply have them unzip wherever they want, but that requires the end-user to have Java installed, or you could look at using an installer.Java Code:<app-folder> - <your jar file> lib - <any jar files required by your jar file>
Note that your jar file Manifest needs to reference the dependent jars.Please do not ask for code as refusal often offends.
Similar Threads
-
Re: Deploying web application from Java classes
By Joel in forum New To JavaReplies: 23Last Post: 06-15-2011, 05:40 PM -
Deploying a JSF Web Application to a Server
By Nivedita in forum JavaServer Faces (JSF)Replies: 0Last Post: 05-01-2011, 09:07 AM -
Problem in Deploying j2ee web application
By arshadalisoomro in forum Advanced JavaReplies: 0Last Post: 01-24-2011, 02:23 PM -
error deploying Enterprise application
By mihael in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 01-30-2009, 10:46 AM -
(Server)Socket application deploying
By mdinant in forum NetworkingReplies: 0Last Post: 04-09-2008, 05:10 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks