https://bugzilla.novell.com/show_bug.cgi?id=465250 Summary: No CLASSPATH when installing mysql-connector-java Classification: openSUSE Product: openSUSE 11.1 Version: RC 2 Platform: i686 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Java AssignedTo: bnc-team-java@forge.provo.novell.com ReportedBy: jimc@math.ucla.edu QAContact: qa@suse.de Found By: --- User-Agent: Opera/9.63 (X11; Linux i686; U; en) Presto/2.1.1 Build Identifier: I'm using oobase from OpenOffice_org-base-3.0.0.9-1.12 with a MySQL database, and it needs mysql-connector-java. I install mysql-connector-java-5.1.6-1.44.noarch.rpm . The installation fails as detailed below, and oobase cannot load com.mysql.jdbc.Driver even though the package's jar file made an appearance. Reproducible: Always Steps to Reproduce: 1. Newly install mysql-connector-java-5.1.6-1.44.noarch.rpm 2. Run a program such as oobase that needs com.mysql.jdbc.Driver Actual Results: 1. During installation (and also removal) %post and %postun both say: /var/tmp/rpm-tmp.7619: line 1: /usr/lib/ooo3/%ooo_base_dir/program/java-set-classpath: No such file or directory (Note that %ooo_base_dir didn't get a value; '.' would have worked.) 2. oobase, when opening the MySQL database, says: The connection to the data source "mythconverg" could not be established. The driver class 'com.mysql.jdbc.Driver' could not be loaded. Expected Results: %post should have modified /usr/lib/ooo3/basis3.0/program/fundamentalbasisrc to say URE_MORE_JAVA_CLASSPATH_URLS=file:///usr/share/java/mysql-connector-java.jar (each supplementary jar file should be appended to make a space separated list). %postun should remove the de-installed jar file from this list. In Ooo-2.0 the list is in /usr/lib/ooo-2.0/program/jvmfwk3rc variable UNO_JAVA_JFW_CLASSPATH_URLS but in Ooo-3.x that script takes its value from the indicated fundamentalbasisrc script. 2. When you install a jar file, packages should be able to load from it. If I hand-edit /usr/lib/ooo3/basis3.0/program/fundamentalbasisrc as indicated above in "Expected Results", oobase can load the driver, talk to MySQL, and open the database. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.