java/dbvis: Improve do-install
MFH: 2025Q3 (cherry picked from commit 2b74b9e1c6349ac4f528d639c34b038248be9336)