Hello! I have a problem with the startup.the Launcher jar file. I want to install a launcher to launch the minecraft Launcher game, but in the console when entering "sudo java -jar TLauncher-2.895.jar " outputs an error:
java.awt.HeadlessException:
No X11 DISPLAY variable was set,
but this program performed an operation which requires it.
at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:166)
at java.desktop/java.awt.Window.<init>(Window.java:553)
at java.desktop/java.awt.Frame.<init>(Frame.java:428)
at java.desktop/java.awt.Frame.<init>(Frame.java:393)
at java.desktop/javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1919)
at java.desktop/javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1995)
at java.desktop/javax.swing.JOptionPane.getRootFrame(JOptionPane.java:1695)
at java.desktop/javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:874)
at org.tlauncher.tlauncher.rmo.Bootstrapper.showWarningMessage(Bootstrapper.java:345)
at org.tlauncher.tlauncher.rmo.Bootstrapper.testDoubleRunning(Bootstrapper.java:163)
at org.tlauncher.tlauncher.rmo.Bootstrapper.main(Bootstrapper.java:106)
problem with preparing boostrapper
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.tlauncher.util.TlauncherUtil.showCriticalProblem(TlauncherUtil.java:304)
at org.tlauncher.util.TlauncherUtil.showCriticalProblem(TlauncherUtil.java:311)
at org.tlauncher.tlauncher.rmo.Bootstrapper.main(Bootstrapper.java:155)
Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set,
but this program performed an operation which requires it.
at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:166)
at java.desktop/java.awt.Window.<init>(Window.java:553)
at java.desktop/java.awt.Frame.<init>(Frame.java:428)
at java.desktop/java.awt.Frame.<init>(Frame.java:393)
at java.desktop/javax.swing.JFrame.<init>(JFrame.java:180)
at org.tlauncher.tlauncher.ui.alert.Alert.<clinit>(Alert.java:25)
... 3 more
I tried to download minecraft from the opensuse portal, but the error was very similar. What should I do? I have installed Hyprland-dots from JaKooLit on the text systemd interface.
- Important! We recommend that you run with root if you run without root privileges,
then there are problems with the graphics (gpu).
Run as follows:
1) Navigate to the client folder using the CD command
2) Running: sudo java -jar TLauncher-2.895.jar
In the Readme, it is recommended to launch the launcher via “sudo”
I couldn’t do it through su -. But I tried to move TLauncher-2.895.jar I went to my home folder and wrote java jar TLauncher-2.895.jar in a regular user, a boot window has started for me. Clicking on the “Update” button, the subsequent download of TLauncher was very long, I closed the window and the terminal appeared:
hip@localhost ~ java -jar TLauncher-2.895.jar
[SimpleConfiguration] /home/hip/.tlauncher/tlauncher-2.0.properties file not exists
-------------------------------------------------------------------
[Downloader2] Loaded configuration: normal
[Downloader2] Files in queue 17
[Downloader2] Starting download 17 files...
[D#2] > done http://res.tlauncher.org/b/libraries/com/google/guava/guava/19.0/guava-19.0.jar
[D#2] > done http://res.tlauncher.org/b/libraries/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar
[D#2] > done http://res.tlauncher.org/b/libraries/net/sf/jopt-simple/jopt-simple/4.9/jopt-simple-4.9.jar
[D#2] > done http://res.tlauncher.org/b/libraries/log4j/log4j/1.2.17/log4j-1.2.17.jar
[D#2] > done http://res.tlauncher.org/b/libraries/org/tukaani/xz/1.5/xz-1.5.jar
[D#2] > done http://res.tlauncher.org/b/libraries/org/tlauncher/tlauncher-resource/1.4/tlauncher-resource-1.4.jar
[D#2] > done http://res.tlauncher.org/b/libraries/com/github/junrar/junrar/0.7/junrar-0.7.jar
[D#2] > done http://res.tlauncher.org/b/libraries/org/apache/httpcomponents/fluent-hc/4.5.13/fluent-hc-4.5.13.jar
[D#1] > done http://res.tlauncher.org/b/client/jre/linux/jre-8u281-linux-i586.tar.gz
[D#1] > done http://res.tlauncher.org/b/libraries/com/google/inject/guice/4.1.0/guice-4.1.0.jar
[D#1] > done http://res.tlauncher.org/b/libraries/com/google/inject/extentions/guice-assistedinject/4.1.0/guice-assistedinject-4.1.0.jar
[D#1] > done http://res.tlauncher.org/b/libraries/javax/inject/javax.inject/1/javax.inject-1.jar
[D#1] > done http://res.tlauncher.org/b/libraries/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
[D#1] > done http://res.tlauncher.org/b/libraries/org/tlauncher/picture-bundle/3.72/picture-bundle-3.72.jar
[D#1] > done http://res.tlauncher.org/b/libraries/org/tlauncher/skin-server-API/1.0/skin-server-API-1.0.jar
[D#1] > done http://res.tlauncher.org/b/libraries/dnsjava/dnsjava/2.1.8/dnsjava-2.1.8.jar
[D#1] > done http://res.tlauncher.org/b/libraries/org/apache/logging/log4j/log4j-core/2.14.1/log4j-core-2.14.1.jar
[Bootstrapper] createLauncher
[Bootstrapper] choose jvm:/home/hip/.tlauncher/jvms/jre1.8.0_281/bin/java
[Bootstrapper] validate files
[Bootstrapper] end validated files
[Bootstrapper] Starting launcher...
[Double running] clear time label
> Loading configuration from file: /home/hip/.tlauncher/tlauncher-2.0.properties
> [Configuration] Constant values: {}
> [Configuration] Key "free.partition.size" is invalid!
> [Configuration] Key "max.time.for.backups" is invalid!
> [Configuration] Key "minecraft.versions.sub.old_release" is invalid!
> [Configuration] Key "gui.notice.ad_server" is invalid!
> [Configuration] Key "gui.settings.servers.recommendation" is invalid!
> [Configuration] Key "gui.statistics.checkbox" is invalid!
> [Configuration] Key "gui.discord.checkbox" is invalid!
> [Configuration] Key "skip.user.backup" is invalid!
> [Configuration] Key "minecraft.versions.sub.remote" is invalid!
> [Configuration] Key "gui.console.height" is invalid!
> [Configuration] Key "minecraft.versions.modified" is invalid!
> [Configuration] Key "gui.console.x" is invalid!
> [Configuration] Key "gui.settings.guard.checkbox" is invalid!
> [Configuration] Key "gui.console.y" is invalid!
> [Configuration] Key "client" is invalid!
> [Configuration] Key "connection" is invalid!
> [Configuration] Key "minecraft.fullscreen" is invalid!
> [Configuration] Key "minecraft.versions.release" is invalid!
> [Configuration] Key "minecraft.onlaunch" is invalid!
> [Configuration] Key "max.size.for.world" is invalid!
> [Configuration] Key "repeat.backup.hours" is invalid!
> [Configuration] Key "gui.notice.ad_other" is invalid!
> [Configuration] Key "minecraft.gamedir" is invalid!
> [Configuration] Key "gui.console.width" is invalid!
> [Configuration] Key "minecraft.memory.ram2" is invalid!
> [Configuration] Key "gui.console" is invalid!
> [Configuration] Key "minecraft.size" is invalid!
> [Configuration] Key "gui.notice.ad_youtube" is invalid!
> decreased memory from 1500 to 1024
> [Loading] INITIALIZING
> Starting TLauncher 2.895 RELEASE
> For more information, visit https://tlauncher.org/
> Startup time: 29.02.2024 15:44:24
> Running folder /home/hip
> ---
> [Loading] LOADING_CONFIGURATION
> Machine info: -------------------------------------------------------
> Linux 6.7.6-1-default, Java 1.8.0_281, jvm bit x32, 15921 MB RAM
> java path=/home/hip/.tlauncher/jvms/jre1.8.0_281/bin/java
> -------------------------------------------------------
> Selected locale: ru
> Locale fil doesn't contain key button.update.update
> Locale nb_NO doesn't contain key button.update.update
> Locale vi doesn't contain key button.update.update
> [Loading] LOADING_CONSOLE
> [Downloader2] Loaded configuration: good
> [Updater] Requesting an update...
> [Updater] Requesting from: https://repo.tlauncher.org/update/lch/release_update_2.3.json
> [Updater] Making request: https://repo.tlauncher.org/update/lch/release_update_2.3.json?version=2.895&client=cc48a70a-b93f-47db-9480-baca26cd8080
> [Updater] Request time: 664 ms
> [Updater] Successfully requested from: https://repo.tlauncher.org/update/lch/release_update_2.3.json
[Bootstrapper] I can be terminated now: 0