Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when opening Elixir project on Windows #3647

Open
StragaSevera opened this issue Sep 4, 2024 · 1 comment
Open

Error when opening Elixir project on Windows #3647

StragaSevera opened this issue Sep 4, 2024 · 1 comment

Comments

@StragaSevera
Copy link

Describe the bug
Whenever I open an Elixir project, or when I try to run tests or server from within the IDE, I receive this error:

Internal error (java.lang.UnsupportedClassVersionError): org/elixir_lang/jps/model/SerializerExtension has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0 java.lang.UnsupportedClassVersionError: org/elixir_lang/jps/model/SerializerExtension has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0 at java.base/java.lang.ClassLoader.defineClass1(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012) at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:524) at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:427) at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:421) at java.base/java.security.AccessController.doPrivileged(AccessController.java:712) at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:420) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:467) at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.nextProviderClass(ServiceLoader.java:1217) at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1228) at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1273) at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1309) at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1393) at com.intellij.util.containers.ContainerUtil.newArrayList(ContainerUtil.java:149) at org.jetbrains.jps.service.impl.JpsServiceManagerImpl$SingleClassLoaderPluginManager.loadExtensions(JpsServiceManagerImpl.java:113) at org.jetbrains.jps.service.impl.JpsServiceManagerImpl.loadExtensions(JpsServiceManagerImpl.java:105) at org.jetbrains.jps.service.impl.JpsServiceManagerImpl.getExtensions(JpsServiceManagerImpl.java:58) at org.jetbrains.jps.model.serialization.JpsModelSerializerExtension.getExtensions(JpsModelSerializerExtension.java:48) at org.jetbrains.jps.model.serialization.library.JpsSdkTableSerializer.getSdkPropertiesSerializer(JpsSdkTableSerializer.java:134) at org.jetbrains.jps.model.serialization.library.JpsSdkTableSerializer.loadSdk(JpsSdkTableSerializer.java:69) at org.jetbrains.jps.model.serialization.library.JpsSdkTableSerializer.loadSdks(JpsSdkTableSerializer.java:61) at org.jetbrains.jps.model.serialization.JpsGlobalSettingsLoading$SdkTableSerializer.loadExtension(JpsGlobalSettingsLoading.java:69) at org.jetbrains.jps.model.serialization.JpsGlobalSettingsLoading$SdkTableSerializer.loadExtension(JpsGlobalSettingsLoading.java:62) at org.jetbrains.jps.model.serialization.JpsLoaderBase.loadComponents(JpsLoaderBase.java:46) at org.jetbrains.jps.model.serialization.JpsGlobalLoader.loadGlobalComponents(JpsGlobalLoader.java:52) at org.jetbrains.jps.model.serialization.JpsGlobalLoader.load(JpsGlobalLoader.java:36) at org.jetbrains.jps.model.serialization.JpsGlobalSettingsLoading.loadGlobalSettings(JpsGlobalSettingsLoading.java:33) at org.jetbrains.jps.model.serialization.impl.JpsSerializationManagerImpl.loadModel(JpsSerializationManagerImpl.java:25) at org.jetbrains.jps.cmdline.JpsModelLoaderImpl.loadModel(JpsModelLoaderImpl.java:35) at org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:68) at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:363) at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:212) at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:211) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833)

To Reproduce
Steps to reproduce the behavior:

  1. Open a project;
  2. See error

Expected behavior
Error is not shown, mix commands run normally from IDE/

Desktop:

  • OS: Windows 10

Erlang:

  • Installer: Scoop
  • Version: 27

Elixir:

  • Installer: Scoop
  • Version: 1.17.2

Plugin:

  • Version: 19.0.1

Additional context
I tried to solve it by manually setting up IntelliJ JVM to the OpenJDK 21, but it did not help.

@formingform
Copy link

formingform commented Jan 3, 2025

I'm having a similar issue. I use IDEA for JAVA and Elixir projects. Yesterday, I just opened the previous Elixir project. TODAY I FOUND OUT THAT MY JAVA PROJECT IS NOT RUNNING, AND THE ERROR MESSAGE IS THE SAME AS THIS.

OS: WIDNOWS 11 + WSL2
Erlang/OTP 25 [erts-13.2.2.5] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns]
Elixir 1.14.5 (compiled with Erlang/OTP 25)
Elixir Plugin: Version: 19.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants