Cannot launch Nvidia nsight
So turns out that the openjdk-8-jdk package is not what's needed to work with nsight.
You need to install the oracle-java8-installer:
sudo apt install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt update
sudo apt install oracle-java8-installer
Once done, nsight miraculously springs into life!
Expending on comments on Ben Turner answer, this what worked for me (Ubuntu 18.04, cuda 10.1). from this thread on Nvidia forum, just install:
sudo apt install openjdk-8-jdk
and that's it.
running from terminal:
nsight -vm /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
and if you want to start Nsight from GUI, modify /usr/share/applications/nsight.desktop like so
Exec=/usr/local/cuda-10.1/bin/nsight -vm /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java