I have a problem when linking a java program, pdftk which is in version 1.12
I can compile all the files but when it comes to linking I get the
following messages:
: undefined reference to `_Jv_CreateJavaVM(void*)'
../java_libs/com/lowagie/text/pdf/pdf.a(DocumentFont.o)(.data+0x0):
undefined reference to `_Jv_intVTable'
../java_libs/com/lowagie/text/pdf/pdf.a(GlyphList.o)(.data+0x0):
undefined reference to `_Jv_intVTable'
So there must be a library which is not found, but why and how ?
I have just installed gcj libgcj and libgcj-devel.
Another thing:
I compile a simple AWT example which I thought was supported.
But when I run it I get the following message:
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit:
gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit() (/usr/lib/libgcj.so.5.0.0)
at java.awt.Component.getToolkit() (/usr/lib/libgcj.so.5.0.0)
Is there a way around this ?
Best regards,
IB