Exception in thread "main" java.lang.UnsupportedClassVersionError: SSLPoke (Unsupported major.minor version 52.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) 

This error implies that java 8 is not supported. But I installed and 7 with 6, and in the path indicated those versions before compiling, still the same error.

What could be the problem?

  • First, write what you are doing, how are you trying to compile? - MrFylypenko
  • Initially, I had problems with SSL certificates, and to solve them I used SSLPoke which I found in the Internet. - Yerassyl Toktagazin
  • 2
    in the project settings you need to enable java 8 support - Senior Pomidor

2 answers 2

This error means that the library containing the class SSLPoke is compiled in Java 8, and your project is configured for an older version of Java.

    Select 7 java in the project settings.