Hard gcj dependency instead of using java alternative
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hsqldb (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I struggled to get hsqldb-server running, and even apt-get remove hsqldb-server did not work.
Finally, first I removed gcj-jre* from my system. Secondly, I edited /etc/hsqldb.conf and set the JAVA_EXECUTABLE to point to /usr/bin/java instead of the hardcoded GCJ bin. Now hsqldb apparently starts and stops fine.
What I believe is a bug here is that hsqldb.conf points to GCJ instead of using the system configured Java alternative (controlled using update-
Here is output from trying to purge hsqldb-server. I don't know the internals of hsqldb, but apparently it tries to invoke hsqldb's init.d script to stop(?) the server. The same exception occurs when doing "sudo service hsqldb-server start|stop".
$ sudo apt-get purge hsqldb-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
hsqldb-server*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 125 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 294919 files and directories currently installed.)
Removing hsqldb-server ...
Exception in thread "main" java.lang.
at java.lang.
at java.lang.
at org.hsqldb.
at org.hsqldb.
at org.hsqldb.
Caused by: java.lang.
at java.net.
at java.lang.
at java.lang.
at java.lang.
at java.lang.
...4 more
WARNING: hsqldb is still running!
invoke-rc.d: initscript hsqldb-server, action "stop" failed.
dpkg: error processing hsqldb-server (--purge):
subprocess installed pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already
invoke-rc.d: initscript hsqldb-server, action "start" failed.
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
hsqldb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Status changed to 'Confirmed' because the bug affects multiple users.