JAGPdf and Netbeans

34 views
Skip to first unread message

sw2090

unread,
Oct 9, 2009, 12:08:07 PM10/9/09
to jagpdf
Hi there,

I run Netbeans 6.7 and I wanted to use JAGPdf in an Java Application
created with Netbeans API.
The Handbook on your Homepage didn't help me in this case so I want to
report how I made it to use it with netbeans:

- add the .jar to your Project in netbeans by right-clicking the
project name and selecting "properties" and then "libraries". It is
just enough to add the .jar as a lib required for building the
project.

once you done that it should appear under "libraries" in the tree on
the left side under the project name.

Now this is not enough! Since JAGPdf is a JNI Module it consists of
two parts: the .jar and a shared object (.so) in the Linux Version
(a .dll in the windows one).
If you just added the .jar to you project and try to run it netbeans
will complain that there is no jagpdf_java-1.4 in your
java.library.path.

To fix that you have to right-click your project, choose "properties",
then choose "run" and enter into "VM-Options":

-Djava.library.path=path_to_the_.so_file

this will make netbeans find the .so and everything works fine here.

Maybe this helps others who want to use this lib in netbeans

Jaroslav Grešula

unread,
Oct 9, 2009, 1:13:46 PM10/9/09
to jag...@googlegroups.com

Hi,

I'm glad it works for you. Your report is appreciated.

--
Jarda
http://jagpdf.org

Reply all
Reply to author
Forward
0 new messages