Author |
Topic  |
|
daviddu@cctexas.com
14 Posts |
Posted - 02 Mar 2006 : 14:48:20
|
OK, I'm just getting started at working with basic Java Applications. I've got Eclipse and the libraries installed according to your documentation, and I can compile and execute any of the examples from within the IDE.
Now for my question. Working in the IDE is all nice and good, except thats not what I need to deploy. There's nothing in the manual itself as to how to actually DEPLOY an application. Once I've got the thing working in Eclipse, how do I convert it into an executable Java application (or more importantly, an Applet)?
David Dudley |
|
quinncurtis
1586 Posts |
Posted - 02 Mar 2006 : 16:21:37
|
Both manuals contain information about packaging Java applets for use in web pages. See Chapter 24 of the QCChart2D manual and Chapter 19 in the QCRTGraph manual. This is pretty easy to do if you start with our templates.
The best way to package Java applications is to use the Fat Jar plug-in tool available from SourceForge.net http://sourceforge.net/projects/fjep (its free). It simplifies packaging external JARs (our qcchart2djava.jar and qcrtgraphjava.jar) with an application and wraps everything up into one big JAR file.
It packages a complete Eclipse project. So the best way to use it is to create your own, new, Eclipse project that includes references to our JAR libraries, and once you have that running, use the Export - Fat Jar Exporter to create the composite JAR file.
|
 |
|
quinncurtis
1586 Posts |
Posted - 03 Mar 2006 : 09:17:46
|
When you actually deploy and applet or application, independent of Eclipse, make sure you use the qcchart2djava.jar and/or the qcrtgraphjava.jar libraries found in the Quinn-Curtis\java\RedistributableFiles folder, NOT the same-named ones in the Quinn-Curtis\java\lib folder.
The JAR files in the \lib folder contain the javadoc documentation for the classes, making those the ones you should use for development, though that adds several megabytes their size. The JAR files in the \RedistributableFiles folder have had the javadoc documentation stripped out, leaving only the library classes. This makes the JAR files very compact (414KB and 168KB respectively), resulting in faster load times, for both applets and applications. |
 |
|
|
Topic  |
|
|
|