I get the following error while trying to compile or run everything that has to do with java
or javac
:
Error occurred during initialization of VM
java/lang/ClassNotFoundException: error in opening JAR file <Zip file open error> /usr/lib/jvm/java-8-oracle/jre/lib/rt.jar
I've read here that i should uninstall and install again JDK, here it is written that I should know which version of java I have installed on my pc in order to uninstall-it.
To check the version installed i run java -version
but i get the error mentioned above, how can i check my java version without that command?
I know that i have installed java 8 but i don't know precisely which version it is.