If I'm adding a library such as JDOM, where does it go?
"Wrapping the Libraries
You could bundle the entire Feed Reader application into a single module.
However, the application needs the Rome, Rome Fetcher, and JDom libraries:
* Rome. Reads RSS and Atom feeds, using a very simple API.
* Rome Fetcher. Allows the retrieval of feeds via HTTP.
* JDom. Is an XML parsing API. The only reason the Feed Reader will
need it is because the Rome library uses it.
Later, if you want to extend the Feed Reader application with more
modules that may use these libraries, it would be better for them to
depend on just the library modules, rather than the entire Feed Reader.
Also, library modules can be "autoloading", which means that NetBeans
will only load them when needed. Until that happens, it won't take up any
memory at runtime."
http://platform.netbeans.org/tutorials/60/nbm-feedreader.html
I want JDOM and such to be "autoloading" and want to add it in a general
way so that I don't have to add it again...
thufir@arrakis:~/NetBeansProjects/feedread-suite$
thufir@arrakis:~/NetBeansProjects/feedread-suite$ ll /usr/share/netbeans/
java1/modules/org-netbeans-modules-junit.jar
-rw-r--r-- 1 root root 576588 2008-03-20 14:34 /usr/share/netbeans/java1/
modules/org-netbeans-modules-junit.jar
thufir@arrakis:~/NetBeansProjects/feedread-suite$
thufir@arrakis:~/NetBeansProjects/feedread-suite$ ll /usr/share/
netbeans/6.0.1/platform7/modules/org-netbeans-swing-plaf.jar
-rw-r--r-- 1 root root 175371 2008-03-20 14:43 /usr/share/netbeans/6.0.1/
platform7/modules/org-netbeans-swing-plaf.jar
thufir@arrakis:~/NetBeansProjects/feedread-suite$
thufir@arrakis:~/NetBeansProjects/feedread-suite$ ll
total 3316
-rw-r--r-- 1 thufir thufir 452 2008-06-26 00:30 build.xml
-rw-r--r-- 1 thufir thufir 3379731 2008-06-26 00:40 jdom-1.1.tar.gz
drwxr-xr-x 4 thufir thufir 4096 2008-06-26 00:43 nbproject
thufir@arrakis:~/NetBeansProjects/feedread-suite$
thufir@arrakis:~/NetBeansProjects/feedread-suite$ svn status
? jdom-1.1.tar.gz
M nbproject
thufir@arrakis:~/NetBeansProjects/feedread-suite$
thufir@arrakis:~/NetBeansProjects/feedread-suite$
thanks,
Thufir
Sabine Dinis Blochberger - 26 Jun 2008 09:51 GMT
> If I'm adding a library such as JDOM, where does it go?
>
[quoted text clipped - 13 lines]
> will only load them when needed. Until that happens, it won't take up any
> memory at runtime."
Have you tried the Library Manager (menu Tools->Libraries)? Make a new
Library with all the jars in it for JDOM (and javadocs, if applicable).
Then add the library to your project (right click on Libraries for
example). When you import a package from a library like that, Netbeans
will include it with your final jar file in a /lib path.
Note that you have to add jar files, not a whole directory - Netbeans
will not include libraries in yur final jar that contain directories.

Signature
Sabine Dinis Blochberger
Op3racional
www.op3racional.eu
thufir - 26 Jun 2008 20:08 GMT
> Have you tried the Library Manager (menu Tools->Libraries)? Make a new
> Library with all the jars in it for JDOM (and javadocs, if applicable).
> Then add the library to your project (right click on Libraries for
> example). When you import a package from a library like that, Netbeans
> will include it with your final jar file in a /lib path.
What I meant to ask was: what's the path to the, for instance, JDOM jar
file?
/usr/share/netbeans/java1/modules/JDOM.jar
or
usr/share/netbeans/6.0.1/platform7/modules/JDOM.jar
or something entirely different?
thanks,
Thufir