I was having difficulties with installing Netbeans on a Mint 17.3 machine and decided to try to use Docker for a quick fix and I was impressed, as usual with Docker, with its ease of use. This post is just a summary of a main article found on https://hub.docker.com/r/fgrehm/netbeans/.
Open a terminal and type
docker run -ti --rm \ -e DISPLAY=$DISPLAY \ -v /tmp/.X11-unix:/tmp/.X11-unix:rw \ -v `pwd`/.netbeans-docker:/home/developer/.netbeans \ -v `pwd`:/workspace \ fgrehm/netbeans:v8.0.1
Note : if Netbeans does not start after typing this command, it is probably a x11 issue. Just type
and retry the above command.