In general, there is an empty project in IDEA to it, I connect swt.jar but when I try to start the application I swt.jar an error:

cannot access org.eclipse.swt.SWT bad class file: org / eclipse / swt / SWT.class (org / eclipse / swt: SWT.class) class file has the wrong version 52.0, should be 50.0 in the correct subdirectory of the classpath.

In the project I use Java 1.6.

MANIFEST.MF

 Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: SWTTestTask Bundle-SymbolicName: SWTTestTask Bundle-Version: 1.0.0.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Require-Bundle: org.eclipse.swt.cocoa.macosx.x86_64.source;bundle-version="3.6.2" Import-Package: org.eclipse.jface.viewers, org.eclipse.swt.widgets, javax.activation 

What could be the problem?

PS : In the Eclipse IDE, everything starts up fine.

  • In Idea: Settings - Java Compiler - Target bytecode version which version? - Vladimir Glinskikh
  • There hasn't been any installed at all. Right now I put 1.6 and gives another error: Error: java: javacTask: source release 1.8 requires target release 1.8 - Kirill Stoianov
  • So, I corrected this error. now another Exception in thread "main" org.eclipse.swt.SWTException: Invalid thread access - Kirill Stoianov
  • Perhaps this link will help. - Vladimir Glinskikh

0