It was the new Linux Mint xfce machine
I struggled with this for about a week. I am trying to learn Java on the Netbeans IDE, and therefore, naturally, I get a combo file directly from Oracle. What is the JDK and Netbeans IDE package together in the tar file located here.
located http://www.oracle.com/technetwork/java/javase/downloads/index.html JDK 8u25 file name with NetBeans 8.0.1
after installing them (or so I thought), I would make / compile a simple program, such as "hello world", and this will spit out the jar file that you can run in the terminal. Keep in mind that the program ran in the Netbeans IDE.
I would end up with this error: java.lang.UnsupportedClassVersionError:
Although I was running the file from the oracle website, I still had an old version of the Java runtime that was not compatible with the jar file that was compiled with the new version of java.
After you come across things that were mostly above my head, from installing Paths to editing .bashrc without fixing it.
I came across a solution that was easy enough for me. I came across the fact that it automatically installs java and configures it on your system, and it works with the latest 1.8. *
One of the steps is to add PPA, at first there wasnโt any certainty about it, but it seems to be fine, since it worked for me.
sudo add-apt-repository ppa: webupd8team / java
Sudo apt-get update
sudo apt-get install oracle-java8-installer
domenic @ domenic-AO532h ~ $ java -version java version "1.8.0_25" Java (TM) SE Runtime Environment (build 1.8.0_25-b17) Java HotSpot (TM) Server VM (build 25.25-b02, mixed mode)
I think it also configures java browser.
Hope this helps others.