I've currently just set up a CentOS VPS with VNC for remote desktop access. I've installed multiple packages of different Java's but I still can't open any .jar files.The two .jar files I tried to open on the account called desktop I created. This account has sudo privileges by adding its name through visudo. No error pops up from right clicking it and clicking "Open With Java", just nothing happens. I was going too try to open the program through SSH however I'm unsure how to do that .
Selection Command
-----------------------------------------------
1 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.45-28.b13.el6_6.x86_64/jre/bin/java
2 /usr/java/jre1.8.0_45/bin/java
3 /usr/java/latest/jre/bin/java
* 4 /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
+ 5 /opt/jdk1.8.0_45/bin/java
----------------------------------------------
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
desktop ALL=(ALL) ALL