Issue
Anyone have success using Eclipse for Kotlin development? If so, please advise what Eclipse, JVM and Kotlin plug-in versions you use.
I tried the following combination but only had (very) limited success:
- Eclipse 2018-12 RC1 (buildId=4.10.0.I20181129-0330)
- JVM (11.0.1)
- Kotlin plugin (0.8.11.v20181207-0928)
Eclipse seems to run fine on JVM 11 but Kotlin plug-in gives errors when creating a new Kotlin project:
Errors occurred during the build.
Errors running builder 'KotlinBuilder' on project 'KotTest'.
org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor
Thanks
Eclipse log:
!ENTRY org.eclipse.core.resources 4 75 2018-12-15 15:46:27.368
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 org.jetbrains.kotlin.ui 4 75 2018-12-15 15:46:27.368
!MESSAGE Errors running builder 'KotlinBuilder' on project 'KotTest'.
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(ModuleClassLoader.java:279)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.defineClass(ClasspathManager.java:703)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findClassImpl(ClasspathManager.java:626)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:594)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:574)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:553)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:331)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:473)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
...
Solution
I have same issue, it seems Kotlin Eclipse plugin breaks JDT from Eclipse 2018/12 I had to revert back to eclipse 2018/09 to have my workspace working again
Answered By - Arnaud MERGEY
Answer Checked By - David Goodson (JavaFixing Volunteer)