[_] netbeans jar targets
Alex Stanhope
listalex at lightenna.com
Tue May 1 09:01:22 BST 2007
[Alan] Here are links to the files you mentioned: http://www.lightenna.com/sitefiles/lightenna.com/build.xml http://www.lightenna.com/sitefiles/lightenna.com/build-impl.xml http://www.lightenna.com/sitefiles/lightenna.com/project.xml They currently compile the sources and produce a single .jar file (aqm.jar) which contains all my code, leaving a dozen or so libraries as external references. What I'm trying to do is build a second .jar (ccd.jar) based on a subset of my code (everything except the aqm folder), which compiles in all the external libraries, to produce a single .jar solely dependent upon the JRE. I've included a file structure appendix below incase that's relevant. [Jan] > manifest.mf or MANIFEST.MF? (Actually you can just supply these > parameters directly to the jar task in ant IIRC, and it should do the > right thing.) manifest.ccd (although I did try manifest.mf, not MANIFEST.MF) and I am supplying that as an argument to jar. > Wasn't aware that the executable jar format supported recursive .jar doh. Well I imagine that would have been the next problem ("can't find libraries") after this one ("can't find Main class"). I think staying in Netbeans is the right way to go, but thanks anyway. [Beer] Always delighted to buy beer but I guess I'm talking more about a service issue. Pete, I don't think Freelancers.net is particularly setup for this, but it's good in its own right. Also I think text-based forums aren't particularly well setup for this kind of support either. I really want an IDE which can semi-automatically publish problems to a live site where experts can solve them (and have all the resources they need). [File structure] My code build + classes + apecc + qm + aqm (included in aqm.jar, excluded from ccd.jar) + ccd + core + geo + hub + qed + rep + test + com (directory containing a hierarchy of library .classes compiled from source - "Internal libs") - log4j.properties External libs (left as external references for aqm.jar, compiled into ccd.jar) + dist + lib - J2PrinterWorks.jar - TrayIcon.jar - activation.jar - beandt.jar - commons-collections-3.1.jar - commons-configuration-1.2.jar - commons-email-1.0.jar - commons-lang-2.1.jar - commons-logging.jar - commons-pool-1.3.jar - concurrent.jar - dbswing.jar - dx.jar - jai_codec.jar - jai_core.jar - jakarta-oro-2.0.8.jar - jbcl.jar - jdom.jar - junit-3.8.1.jar - log4j-1.2.9.jar - mail.jar - mysql-connector-java-3.1.12-bin.jar - openmap.jar Cheers, Alex Alex Stanhope Lightenna Ltd. 0117 929 1032 http://www.lightenna.com