Bug#369574: Suggestion: Add support for gcj to libpg-java
Ulrich Schmid
info at ulrich-schmid.com
Tue May 30 17:52:16 UTC 2006
Package: libpg-java
Version: 8.1-405-1
Severity: wishlist
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-amd64-k8
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages libpg-java depends on:
ii gij [java1-runtime] 4:4.1.0-2 The GNU Java bytecode interpreter
ii gij-4.1 [java1-runtime] 4.1.0-2j1 The GNU Java bytecode interpreter
libpg-java recommends no packages.
-- no debconf information
Version of package gcj:
ii gcj 4.1.0-2 The GNU Java compiler
Hi,
using 'Class.forName("org.postgresql.Driver");' in a gcj-compiled programm failed with ClassNotFoundException:
ClassNotFoundException
java.lang.ClassNotFoundException: org.postgresql.Driver not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
'strace' showed that it tried to load the library lib-org-postgresql-Driver.so.
I tried to create this library by compiling /usr/share/java/postgresql.jar. It worked.
Therefore I would like to suggest adding lib-org-postgresql-Driver.so to libpg-java.
Best Regards,
Ulrich Schmid
More information about the pkg-java-maintainers
mailing list