Nvvp: "Command not found: gosh"

There seem to be a Java version conflict with nvvp or dependency issue

The CUDA 10.2 toolkit requires openjdk-11-jre. If I try to remove it I get the dependencies listed:

~$ sudo apt remove openjdk-11-jre*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'openjdk-11-jre-headless' for glob 'openjdk-11-jre*'
Note, selecting 'openjdk-11-jre' for glob 'openjdk-11-jre*'
Note, selecting 'openjdk-11-jre-zero' for glob 'openjdk-11-jre*'
Note, selecting 'openjdk-11-jre-dcevm' for glob 'openjdk-11-jre*'
Package 'openjdk-11-jre-dcevm' is not installed, so not removed
Package 'openjdk-11-jre-zero' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  cuda-command-line-tools-10-2 cuda-compiler-10-2 cuda-cudart-10-2 cuda-cudart-dev-10-2 cuda-cufft-10-2 cuda-cufft-dev-10-2 cuda-cuobjdump-10-2 cuda-cupti-10-2 cuda-cupti-dev-10-2 cuda-curand-10-2 cuda-curand-dev-10-2 cuda-cusolver-10-2
  cuda-cusolver-dev-10-2 cuda-cusparse-10-2 cuda-cusparse-dev-10-2 cuda-demo-suite-10-2 cuda-documentation-10-2 cuda-driver-dev-10-2 cuda-drivers cuda-gdb-10-2 cuda-libraries-10-2 cuda-libraries-dev-10-2 cuda-license-10-2
  cuda-memcheck-10-2 cuda-misc-headers-10-2 cuda-npp-10-2 cuda-npp-dev-10-2 cuda-nsight-compute-10-2 cuda-nsight-systems-10-2 cuda-nvcc-10-2 cuda-nvdisasm-10-2 cuda-nvgraph-10-2 cuda-nvgraph-dev-10-2 cuda-nvjpeg-10-2
  cuda-nvjpeg-dev-10-2 cuda-nvml-dev-10-2 cuda-nvprof-10-2 cuda-nvprune-10-2 cuda-nvrtc-10-2 cuda-nvrtc-dev-10-2 cuda-nvtx-10-2 cuda-runtime-10-2 cuda-samples-10-2 cuda-sanitizer-api-10-2 freeglut3 freeglut3-dev libcublas-dev
  libcublas10 libnvidia-cfg1-440 libnvidia-common-440 libnvidia-decode-440 libnvidia-encode-440 libnvidia-fbc1-440 libnvidia-gl-440 libnvidia-ifr1-440 libxi-dev libxmu-dev libxmu-headers libxnvctrl0 linux-headers-5.4.0-42-generic
  linux-hwe-5.4-headers-5.4.0-42 linux-image-5.4.0-42-generic linux-modules-5.4.0-42-generic linux-modules-extra-5.4.0-42-generic nsight-compute-2019.5.0 nsight-systems-2019.5.2 nvidia-compute-utils-440 nvidia-dkms-440 nvidia-driver-440
  nvidia-kernel-common-440 nvidia-kernel-source-440 nvidia-modprobe nvidia-prime nvidia-settings nvidia-utils-440 screen-resolution-extra xserver-xorg-video-nvidia-440
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  cuda cuda-10-2 cuda-nsight-10-2 cuda-nvvp-10-2 cuda-toolkit-10-2 cuda-tools-10-2 cuda-visual-tools-10-2 default-jre default-jre-headless openjdk-11-jre openjdk-11-jre-headless
0 upgraded, 0 newly installed, 11 to remove and 7 not upgraded.
After this operation, 609 MB disk space will be freed.
Do you want to continue? [Y/n] ^C

If I start nvvp from command line I get these errors:
1613383288124.log (19.2 KB)

Am I missing dependencies?

I’m able to start nvvp by specifying the opendk 8 vm nvvp -vm /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java

OS Linux Mint 19.3 which is based on Ubuntu 18.04.