Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: I can't start Starsector on linux: Error line 1 exec format error  (Read 1778 times)

user

  • Ensign
  • *
  • Posts: 2
    • View Profile

Hello good afternoon. I have downloaded the game for the Linux version. But when I am going to execute "starsector.sh" I find an error message.


"starsector.sh: 1: starsector.sh: ./jre_linux/bin/java: Exec format error"

I can't play for that reason. I've tried using Sudo, using Sh (filename) or ./starsector.sh but everyone throws the same error at me

¿Any idea how to fix it ? I use Linux Mint 19 TARA bit 32, thanks
Logged

outdated

  • Lieutenant
  • **
  • Posts: 58
    • View Profile
Re: I can't start Starsector on linux: Error line 1 exec format error
« Reply #1 on: August 04, 2019, 07:45:11 AM »

What's the output of
Code
java -version
?
Logged

user

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: I can't start Starsector on linux: Error line 1 exec format error
« Reply #2 on: August 04, 2019, 07:56:31 AM »

This: "openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-0ubuntu1.16.04.1-b03)
OpenJDK Server VM (build 25.212-b03, mixed mode)"
Logged

outdated

  • Lieutenant
  • **
  • Posts: 58
    • View Profile
Re: I can't start Starsector on linux: Error line 1 exec format error
« Reply #3 on: August 04, 2019, 08:08:02 AM »

Okay java -version was completely irrelevant, but the issue here is that you have 32bit kernel and the game comes with 64bit JVM. You can try to edit starsector.sh to run the game on system-wide JVM.

Or reinstall the system, because there's no reason to run 32bit system in 2019.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23987
    • View Profile
Re: I can't start Starsector on linux: Error line 1 exec format error
« Reply #4 on: August 04, 2019, 10:37:07 AM »

Okay java -version was completely irrelevant, but the issue here is that you have 32bit kernel and the game comes with 64bit JVM. You can try to edit starsector.sh to run the game on system-wide JVM.

Just to clarify - to do this, change "./jre_linux/bin/java" in starsector.sh to just "java".

Since it's Java 8, you'll also need to edit data/config/settings.json, and set allowAnyJavaVersion to true.
Logged