Villeroy wrote:OpenOffice for Windows is a 32-bit application. It can not interface with a 64-bit Java. Download a 32-bit Java and point OpenOffice to it. Usually, it can be found in C:\Program Files(x86)\
https://libreoffice.org/ is availlable for Windows as 64-bit software.
=> see executive summary at end of post. the rest is just trying to diagnose cause of problem...
But!
The shortcuts that start my hsqldb server, that stop it, and that execute sqltool, all refer to
Code: Select all
"C:\Program Files (x86)\Java\jre1.8.0_211\bin\java.exe" -cp driver\hsqldb.jar org.hsqldb.server.Server -port 9013 -database.0 file:database\CHINESE_BAT_FLU -dbname.0 CHINESE_BAT_FLU
So, it is not the Java. And that works for my production databases.
Bit annoying this, same road block. Maybe I should stay in Cuarentana.
I can access the server db using sqltool. I can open it with OpenOffice. But when I hit the Tables button the message "the driver class could not be loaded" appears. Like the old friend asking for credit, unwelcome.
I did try various permutations on org.hsqldb.jdbcDriver but none of those worked.
I also tried digging into the manifest and other elements of the compressed odb but there was absolutely nothing that could be changed that worked.
Clearly the instance of AOO that is sitting here is not able to map the driver!
Unlikely to be the driver because sqltool works.
Any clues anyone? I really need to knock this on the head.
Inside hsqldb.jar is: org => hsqldb => jdbc => JDBCDriver.class
I could guess that AOO is looking for the driver with lowercase jdbc ...
I also tried changing the driver class in Database Properties Connection Settings to org.hsqldb.jdbc.JDBCDriver (with the extra hierarchy) but that turned out just as stupid.
My sqltool connection string has Driver: org.hsqldb.jdbc.JDBCDriver
and *that* works.
¿¿??
Well, I replaced org.hsqldb.jdbcDriver in the content segment of the compressed odb with the driver name as above in sqltool and that did not work.
OK, backtracking somewhat:
C:\Users\Accounts>java -version
java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)
OK Villeroy, I take your point (32 and 64 bit). But I am so so puzzled that the other services (OpenOffice hsqldb client-server databases) all just work fine.
¡¡OH!!
I decided to try by setting a classpath to the hsqldb.jar driver in the current folder. And now AOO opens the tables.
Yes! I KNOW this is strictly forbidden!! So, what are my options now?
I guess this has xxxxed up the rest of my system, my lovely accounting system.
EXECUTIVE SUMMARY
Creating a new client-server (localhost) OpenOffice Base application demands the hsqldb driver path to be added to the AOO Java Classpath list (which was empty before). Otherwise jdbc driver not found.
¿how on earth has nobody else hit this?
Cheers
David D
And the Javas registered in OpenOffice tools-options all say location C:\Program Files (x86)\Java\
Just to make sure, I changed the "start in" directory in the shortcut that starts AOO to point to windows system32 and removed the classpath and AOO starts but fails to show tables.
So - it does appear to be ABSOLUTELY NECESSARY in this case to specify a global classpath for AOO.
But I still do not understand why the remaining apps worked OK.
XXXXXXX