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

Intellij does not work on Ubuntu using Wayland #1268

Open
jan-vcapgemini opened this issue Jul 13, 2023 · 0 comments
Open

Intellij does not work on Ubuntu using Wayland #1268

jan-vcapgemini opened this issue Jul 13, 2023 · 0 comments
Labels
bug Something isn't working intellij IntelliJ IDE from Jet-Brains

Comments

@jan-vcapgemini
Copy link
Contributor

jan-vcapgemini commented Jul 13, 2023

Expected behavior

As a devonfw-ide intellij user on Ubuntu, I want to run intellij using Wayland instead of Xorg.

Actual behavior

Intellij can not be started and reports following exceptions:

Successfully extracted archive intellij-2023.1.4-ultimate-linux.tar.gz to userhome/devonfw-ide-test/updates/extracted/intellij
Success: run command mv
Successfully installed intellij
The software intellij has been added. You need to rerun 'devon' command without arguments or restart your terminal to update your PATH so the newly installed software will be found.
{
"name": "IntelliJ IDEA",
"version": "2023.1.4",
"buildNumber": "231.9225.16",
"productCode": "IU",
"dataDirectoryName": "IntelliJIdea2023.1",
Success: verify installation of intellij (head)
Success: Configure workspace (java)
Your workspace main has been updated
launching IntelliJ...
command /userhome/devonfw-ide-test/software/intellij/bin/idea
username@pc:~/devonfw-ide-test$ CompileCommand: exclude com/intellij/openapi/vfs/impl/FilePartNodeRoot.trieDescend bool exclude = true
Jul 13, 2023 2:48:58 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.

Start Failed
Failed to initialize graphics environment

java.awt.AWTError: Can't connect to X11 window server using 'wayland-0' as the value of the DISPLAY variable.
at java.desktop/sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at java.desktop/sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:107)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at java.desktop/sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:62)
at java.desktop/sun.awt.PlatformGraphicsInfo.createGE(PlatformGraphicsInfo.java:36)
at java.desktop/java.awt.GraphicsEnvironment$LocalGE.createGE(GraphicsEnvironment.java:103)
at java.desktop/java.awt.GraphicsEnvironment$LocalGE.(GraphicsEnvironment.java:88)
at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:116)
at java.desktop/sun.awt.X11.XToolkit.(XToolkit.java:514)
at java.desktop/sun.awt.PlatformGraphicsInfo.createToolkit(PlatformGraphicsInfo.java:40)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:599)
at com.intellij.idea.StartupUtil$initAwtToolkit$1$1.invokeSuspend(StartupUtil.kt:424)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Suppressed: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit
at java.desktop/sun.awt.PlatformGraphicsInfo.createToolkit(PlatformGraphicsInfo.java:40)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:599)
at java.desktop/java.awt.Toolkit.getEventQueue(Toolkit.java:1498)
at java.desktop/java.awt.EventQueue.isDispatchThread(EventQueue.java:1103)
at java.desktop/javax.swing.SwingUtilities.isEventDispatchThread(SwingUtilities.java:1493)
at java.desktop/javax.swing.text.StyleContext.reclaim(StyleContext.java:473)
at java.desktop/javax.swing.text.StyleContext.addAttribute(StyleContext.java:330)
at java.desktop/javax.swing.text.html.StyleSheet.addAttribute(StyleSheet.java:607)
at java.desktop/javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:1558)
at java.desktop/javax.swing.text.StyleContext$NamedStyle.setName(StyleContext.java:1368)
at java.desktop/javax.swing.text.StyleContext$NamedStyle.(StyleContext.java:1315)
at java.desktop/javax.swing.text.StyleContext.addStyle(StyleContext.java:125)
at java.desktop/javax.swing.text.StyleContext.(StyleContext.java:105)
at java.desktop/javax.swing.text.html.StyleSheet.(StyleSheet.java:167)
at com.intellij.ide.ui.html.GlobalStyleSheetHolder.(GlobalStyleSheetHolder.kt:34)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:467)
at com.intellij.idea.StartupUtil$preloadLafClasses$1.invokeSuspend(StartupUtil.kt:523)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
... 4 more
Caused by: java.lang.ExceptionInInitializerError: Exception java.awt.AWTError: Can't connect to X11 window server using 'wayland-0' as the value of the DISPLAY variable. [in thread "DefaultDispatcher-worker-1"]
at java.desktop/sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at java.desktop/sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:107)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at java.desktop/sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:62)
at java.desktop/sun.awt.PlatformGraphicsInfo.createGE(PlatformGraphicsInfo.java:36)
at java.desktop/java.awt.GraphicsEnvironment$LocalGE.createGE(GraphicsEnvironment.java:103)
at java.desktop/java.awt.GraphicsEnvironment$LocalGE.(GraphicsEnvironment.java:88)
at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:116)
at java.desktop/sun.awt.X11.XToolkit.(XToolkit.java:514)
at java.desktop/sun.awt.PlatformGraphicsInfo.createToolkit(PlatformGraphicsInfo.java:40)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:599)
at com.intellij.idea.StartupUtil$initAwtToolkit$1$1.invokeSuspend(StartupUtil.kt:424)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
... 4 more
Suppressed: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit
at java.desktop/sun.awt.PlatformGraphicsInfo.createToolkit(PlatformGraphicsInfo.java:40)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:599)
at java.desktop/java.awt.Toolkit.getEventQueue(Toolkit.java:1498)
at java.desktop/java.awt.EventQueue.invokeLater(EventQueue.java:1332)
at java.desktop/javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1421)
at com.intellij.ide.Q.U.Q7.Q(Q7.java:208)
at com.intellij.ide.Q.q.Qm.Q(Qm.java:219)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.intellij.idea.MainImpl.start(MainImpl.kt:62)
at com.intellij.idea.StartupUtil$startApplication$7.invokeSuspend(StartupUtil.kt:297)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:284)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
at com.intellij.idea.Main.main(Main.kt:40)
Caused by: [CIRCULAR REFERENCE: java.lang.ExceptionInInitializerError: Exception java.awt.AWTError: Can't connect to X11
window server using 'wayland-0' as the value of the DISPLAY variable. [in thread "DefaultDispatcher-worker-1"]]

Your JRE: 17.0.7+10-b829.16 amd64 (JetBrains s.r.o.)

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. run devon intellij on an Ubuntu using Wayland

Related/Dependent Issues

Comments/Hints:

It seems like intellij is not supporting wayland and will only with X11 Xorg.
See: https://youtrack.jetbrains.com/issue/JBR-1315

After ultimate was installed it was not possible to switch back to community.
I had to delete the intellij folder manually, otherwise devonfw tried to run the version in software instead.

Affected version:

  • OS: Ubuntu: 22.04.2 LTS, jammy (core-11.1.0ubuntu4)
  • devonfw-ide: 2023.007.02
@jan-vcapgemini jan-vcapgemini added bug Something isn't working intellij IntelliJ IDE from Jet-Brains labels Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working intellij IntelliJ IDE from Jet-Brains
Projects
None yet
Development

No branches or pull requests

1 participant