#Version 0.50.0 not working on linux

1 messages · Page 1 of 1 (latest)

modest rock
#

Somewhat-new to linux, currently running Nobara (Fedora 40), have temurin-17-jre installed, and 0.49.19.1's linux version is running fine
Extracted the tarball, running any of the shell scripts results in nothing,
running the shells in terminal give me

Warning: Could not start program '/home/annie/Games/MekHQ-0.50.0/MegaMek.sh' with arguments ''.
Warning: Child process set up failed: execve: No such file or directory

I try running the .jar file using the command given in the instructions page on the website and get an error i'll post in a comment cause it's too long

I try just opening the MegaMek file in /bin and get
Uncaught java.lang.IndexOutOfBoundsException detected. and it telling me to open an issue on the github, which i will do assuming this isn't something wrong on my end
Let me know if there's other info I can provide

#

.jar error

annie@doe:~/Games/MekHQ-0.50.0$ java -jar MegaMek.jar &
[1] 648687
annie@doe:~/Games/MekHQ-0.50.0$ 19:06:48,822 INFO  [megamek.MegaMek] {main}
megamek.MegaMek.initializeLogging(MegaMek.java:146) - Starting MegaMek v0.50.0
    Build Date: 2024-09-01T14:30:43.590738
    Today: 2024-11-09
    Origin Project: MegaMek
    Java Vendor: Red Hat, Inc.
    Java Version: 21.0.5
    Platform: Linux 6.11.6-200.fsync.fc40.x86_64 (amd64)
    System Locale: en_AU
    Total memory available to MegaMek: 4 GB
    MM Code Revision: ce95ba3d3c12c0e4e116cb713e47493316831daa
    MML Code Revision: 19b12fa9a622458ed00b0dc94ef1d0f2b19bbb66
    MHQ Code Revision: eaa1134aa318d26121a879c24651e16e84252b39


19:06:48,825 INFO  [megamek.client.ui.preferences.SuitePreferences] {main}
megamek.client.ui.preferences.SuitePreferences.loadFromFile(SuitePreferences.java:118) - Loading user preferences from: mmconf/mm.preferences

19:06:48,827 INFO  [megamek.client.ui.swing.util.FontHandler] {main}
megamek.client.ui.swing.util.FontHandler.initializeFonts(FontHandler.java:114) - Loading fonts from data/fonts/

19:06:48,983 INFO  [megamek.client.ui.swing.util.FontHandler] {main}
megamek.client.ui.swing.util.FontHandler.initializeFonts(FontHandler.java:123) - Loading fonts from Java's GraphicsEnvironment

19:06:49,050 INFO  [megamek.MegaMek] {main}
megamek.MegaMek.startGUI(MegaMek.java:350) - Starting MegaMekGUI.

19:06:49,122 ERROR [megamek.MegaMek] {AWT-EventQueue-0}
megamek.MegaMek.lambda$main$1(MegaMek.java:95) - Uncaught java.awt.HeadlessException detected. Please open up an issue containing all logs, the game save file, and customs at https://github.com/MegaMek/megamek/issues . If Sentry is enabled, the error has also been logged.
java.awt.HeadlessException: 
No X11 DISPLAY variable was set,
or no headful library support was found,
but this program performed an operation which requires it,

        at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:164)
        at java.desktop/java.awt.Window.<init>(Window.java:553)
        at java.desktop/java.awt.Frame.<init>(Frame.java:428)
        at java.desktop/javax.swing.JFrame.<init>(JFrame.java:224)
        at megamek.client.ui.swing.MegaMekGUI.createGUI(MegaMekGUI.java:134)
        at megamek.client.ui.swing.MegaMekGUI.start(MegaMekGUI.java:104)
        at megamek.MegaMek.lambda$startGUI$5(MegaMek.java:351)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
        at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

thin cypress
#

hey nobara user. our .sh files currently require you to cd into their directory or they can't find the program.

also your log dump indicates that it's using a red hat java 21 instead of your temurin. check sudo alternatives --config java

the startup process is sadly pretty fragile. you can also try bin/MegaMek from the megamek dir tho you may need to give those files a chmod u+x first

#

(heading back to bed tho)

modest rock
#

Thanks on the java catch, the right version should now be selected.
I might be doing something wrong with the shell scripts, but I believe I am in the right directory, here's the command and output in case i'm doing something wrong

annie@doe:~/Games/MekHQ-0.50.0$ ./MegaMek.sh
bash: ./MegaMek.sh: cannot execute: required file not found

However, after doing the chmod changes, your third option is working great, so I can use that for now

thin cypress
#

Oh, I checked on a fresh download of 0.50.0 and I can't get the .sh scripts to work either.

#

bin/MegaMek does work though

modest rock
#

ah kk, ty for the help though! I'll use bin/ for now

thin cypress
#

Oh, found the culprit. Line endings. Running dos2unix *.sh makes them all start working. x.x

modest rock
#

oh yup!

#

all working for me now too

thin cypress
#

Yeah, putting in an issue about it

modest rock
#

tysm for helping!

thin cypress
#

NP :>

modest rock
#

ooh running it through lutris would make it much easier for me