If it is not fixed by Pradyuma approach. You could try following
Type: execstack --version
to check if you already have execstack installed.
If you get command not found type: sudo apt-get install execstack -y --force-yes
Type sudo execstack -c
e.g sudo execstack -c /usr/lib/libcuda.so
I hope it gonna fix the error.
install 32 bit version of java (dont remove 64 bit,Keep both) and make it default (sudo update-alternatives --config java) then try.