FTB-App icon indicating copy to clipboard operation
FTB-App copied to clipboard

FTB App linux installer not working

Open rKuettel opened this issue 2 years ago • 32 comments

What Operating System

Linux (Debian)

App Version

FTBA_unix_202203251547-a5e4f8b1e5-release

UI Version

No response

Log Files

void@v0id:~/test$ ./FTBA_unix_202203251547-a5e4f8b1e5-release.sh 
No suitable Java Virtual Machine could be found on your system.
Downloading JRE with wget ...
--2022-03-30 18:57:57--  https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.1%2B12/OpenJDK17U-jre_x64_linux_hotspot_17.0.1_12.tar.gz
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/372925194/43de5f79-f8c4-49dd-9e63-97446b1c8ebf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220330%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220330T165757Z&X-Amz-Expires=300&X-Amz-Signature=5aaa06df950974dc4feca227bb7989afc3f75ea6abb9cc8afd3e251cf01f29a2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=372925194&response-content-disposition=attachment%3B%20filename%3DOpenJDK17U-jre_x64_linux_hotspot_17.0.1_12.tar.gz&response-content-type=application%2Foctet-stream [following]
--2022-03-30 18:57:57--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/372925194/43de5f79-f8c4-49dd-9e63-97446b1c8ebf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220330%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220330T165757Z&X-Amz-Expires=300&X-Amz-Signature=5aaa06df950974dc4feca227bb7989afc3f75ea6abb9cc8afd3e251cf01f29a2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=372925194&response-content-disposition=attachment%3B%20filename%3DOpenJDK17U-jre_x64_linux_hotspot_17.0.1_12.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 46151359 (44M) [application/octet-stream]
Saving to: ‘jre.tar.gz’

jre.tar.gz          100%[===================>]  44.01M  8.06MB/s    in 5.5s    

2022-03-30 18:58:03 (8.07 MB/s) - ‘jre.tar.gz’ saved [46151359/46151359]

Unpacking JRE ...
Starting Installer ...
./FTBA_unix_202203251547-a5e4f8b1e5-release.sh: 683: /home/void/test/FTBA_unix_202203251547-a5e4f8b1e5-release.sh.27635.dir/jre/bin/java: not found
void@v0id:~/test$ 

Debug Code

Describe the bug

The install script can't find something in the downloaded JRE and is therefore crashing.

Steps to reproduce

  1. Download install script for linux on https://www.feed-the-beast.com/app
  2. Make bash script excecutable
  3. Excecute install script

Expected behaviour

Installs FTB App

Screenshots

No response

Additional information

I managed to install it with some tweaks. I looked at the tar.gz thescript is downloading and it appears that the downloaded file does't have the excpeted structure anymore. The files are not at the root level of the tar.gz. But the script expects them to be there. Screenshot from 2022-03-30 19-59-10

My solution was to download the tar.gz seperatly extract it and create a new one where the files are on the root level of the tar.gz. Then I just put this newly created tar.gz next to the install script and ran it again. After that erverything worked fine

rKuettel avatar Mar 30 '22 18:03 rKuettel

Can confirm it's the same problem for me with ./FTBA_unix_202204061044-ef5313e696-release.sh. Proposed workaround worked - I've repacked tarball and put jre.tar.gz near installer.

triluch avatar Apr 07 '22 10:04 triluch

I'm also seeing this problem with FTBA_unix_202205171618-14abefffbf-release.sh downloaded from https://www.feed-the-beast.com/app today. The same workaround is seems to be the solution for me.

dazedrobot avatar May 26 '22 21:05 dazedrobot

It apears to be a java verion problem. when i switched to jdk17 it worked allright

Maimoru avatar May 31 '22 14:05 Maimoru

For anyone having this issue please try this as a work around whilst we work to fix this, sorry for the slow reply here.

env INSTALL4J_JAVA_HOME={path to jre} ./{installer .sh file from the website}

Note

The {path to jre} should not include the /bin folder. This is an example env INSTALL4J_JAVA_HOME=/opt/libs/.jdk/temurin-17 ./FTBA_unix_202206031111-b20571b709-develop.sh

Hopefully this solves the issue for you all

MichaelHillcox avatar Jun 16 '22 21:06 MichaelHillcox

For anyone having this issue please try this as a work around whilst we work to fix this, sorry for the slow reply here.

env INSTALL4J_JAVA_HOME={path to jre} ./{installer .sh file from the website}

This does not work on manjaro

env INSTALL4J_JAVA_HOME=/usr/lib/jvm/java-18-openjdk ./FTBA_unix_202206081143-2e021f8e74-release.sh No suitable Java Virtual Machine could be found on your system.

ls -la /usr/lib/jvm/java-18-openjdk  ✔ σύνολο 32 drwxr-xr-x 7 root root 4096 Μαΐ 14 00:27 . drwxr-xr-x 5 root root 4096 Ιουν 21 03:05 .. drwxr-xr-x 2 root root 4096 Μαΐ 14 00:27 bin lrwxrwxrwx 1 root root 17 Μαΐ 5 15:37 conf -> /etc/java-openjdk drwxr-xr-x 4 root root 4096 Μαΐ 14 00:27 demo drwxr-xr-x 3 root root 4096 Μαΐ 14 00:27 include drwxr-xr-x 2 root root 4096 Μαΐ 14 00:27 jmods lrwxrwxrwx 1 root root 32 Μαΐ 5 15:37 legal -> /usr/share/licenses/java-openjdk drwxr-xr-x 5 root root 4096 Μαΐ 14 00:27 lib lrwxrwxrwx 1 root root 14 Μαΐ 5 15:37 man -> /usr/share/man -rw-r--r-- 1 root root 1178 Μαΐ 5 15:37 release

Corfiot avatar Jun 21 '22 00:06 Corfiot

Setting INSTALL4J_JAVA_HOME and INSTALL4J_JAVA_HOME_OVERRIDE did not work on Debian, using [email protected] installed with Jabba. Directly setting export app_java_home=$JAVA_HOME worked for me.

$ $JAVA_HOME/bin/java -version
openjdk version "17" 2021-09-14
OpenJDK Runtime Environment (build 17+35-2724)
OpenJDK 64-Bit Server VM (build 17+35-2724, mixed mode, sharing)

WIPocket avatar Jun 28 '22 12:06 WIPocket

Getting this program on Endeavor OS (Linux based on Arch)

gitdrug avatar Jul 09 '22 18:07 gitdrug

I fixed this issue for myself buy installing Open Jdk 17 with [yay -Syyu jdk17-openjdk] and it let my install the program.

gitdrug avatar Jul 09 '22 18:07 gitdrug

The issue with the installer or rather the content of the downloaded Java Runtime is that the directory structure is wrong.

Below a log output of a clean run can be found with no system JRE installed.

Take note, that the error states: /FTBA_unix_202206081143-2e021f8e74-release.sh.2703654.dir/jre/bin/java is not found. While the correct path that is extracted from jre.tar.gz is as following: FTBA_unix_202206081143-2e021f8e74-release.sh.2703654.dir/jre/jdk-17.0.1+12-jre/bin/java

╭─ husjon in ~/games/feed-the-beast on (master)✘✘✘
╰─(ノ˚Д˚)ノ  ./FTBA_unix_202206081143-2e021f8e74-release.sh
No suitable Java Virtual Machine could be found on your system.
Downloading JRE with wget ...
--2022-07-10 18:26:42--  https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.1%2B12/OpenJDK17U-jre_x64_linux_hotspot_17.0.1_12.tar.gz
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/372925194/43de5f79-f8c4-49dd-9e63-97446b1c8ebf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220710%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220710T162437Z&X-Amz-Expires=300&X-Amz-Signature=cb85187dac7e906e730e6338b10b0ae63775237b417246d5fd4270a4791f0572&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=372925194&response-content-disposition=attachment%3B%20filename%3DOpenJDK17U-jre_x64_linux_hotspot_17.0.1_12.tar.gz&response-content-type=application%2Foctet-stream [following]
--2022-07-10 18:26:42--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/372925194/43de5f79-f8c4-49dd-9e63-97446b1c8ebf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220710%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220710T162437Z&X-Amz-Expires=300&X-Amz-Signature=cb85187dac7e906e730e6338b10b0ae63775237b417246d5fd4270a4791f0572&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=372925194&response-content-disposition=attachment%3B%20filename%3DOpenJDK17U-jre_x64_linux_hotspot_17.0.1_12.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.109.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 46151359 (44M) [application/octet-stream]
Saving to: ‘jre.tar.gz’

jre.tar.gz                                                  100%[==========================================================================================================================================>]  44.01M  37.4MB/s    in 1.2s

2022-07-10 18:26:44 (37.4 MB/s) - ‘jre.tar.gz’ saved [46151359/46151359]

Unpacking JRE ...
Starting Installer ...
./FTBA_unix_202206081143-2e021f8e74-release.sh: line 683: /home/husjon/games/feed-the-beast/FTBA_unix_202206081143-2e021f8e74-release.sh.2703654.dir/jre/bin/java: No such file or directory                                          exit:127


╭─ husjon in ~/games/feed-the-beast on (master)✘✘✘
╰─(ノ˚Д˚)ノ  ls -l FTBA_unix_202206081143-2e021f8e74-release.sh.2703654.dir/jre
drwxr-xr-x - husjon  1 Dec  2021 jdk-17.0.1+12-jre


╭─ husjon in ~/games/feed-the-beast on (master)✘✘✘
╰─(ノ˚Д˚)ノ  ls -l FTBA_unix_202206081143-2e021f8e74-release.sh.2703654.dir/jre/jdk-17.0.1+12-jre/bin
.rwxr-xr-x 13k husjon  1 Dec  2021 java
.rwxr-xr-x 13k husjon  1 Dec  2021 jfr
.rwxr-xr-x 13k husjon  1 Dec  2021 jrunscript
.rwxr-xr-x 13k husjon  1 Dec  2021 keytool
.rwxr-xr-x 13k husjon  1 Dec  2021 rmiregistry


╭─ husjon in ~/games/feed-the-beast on (master)✘✘✘
╰─(ノ˚Д˚)ノ

husjon avatar Jul 10 '22 16:07 husjon

Adding to this, replacing the paths used on line 680 and 683 of the installed from: "$app_java_home/bin/java" to: "$app_java_home/jdk-17.0.1+12-jre/bin/java" allows the installer to start and install. image

These are however changes that need to be done dynamically in the installer.

Here's a screenshot of the installer running with the temporary fix. image

husjon avatar Jul 10 '22 16:07 husjon

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 10 '22 22:08 stale[bot]

Adding to this, replacing the paths used on line 680 and 683 of the installed from: "$app_java_home/bin/java" to: "$app_java_home/jdk-17.0.1+12-jre/bin/java" allows the installer to start and install. image

These are however changes that need to be done dynamically in the installer.

Here's a screenshot of the installer running with the temporary fix. image

i tried editing the file with nano ./FTBA.sh at the position you stated and whenever i do it now gives me an error 1 - installer corrupted?

here the exact code where it hangs itself, obtained via sh -x ./FTBAversion.sh


++ command -v gunzip
+ gunzip_path=/usr/bin/gunzip
+ '[' 0 -ne 0 ']'
+ '[' W/usr/bin/gunzip = W ']'
+ '[' W/usr/bin/gunzip = W ']'
+ '[' -d '' ']'
+ '[' __i4j_extract_and_exit = '' ']'
+ sfx_dir_name=FTBA_unix_202208131844-e5790011d3-release.sh.60420.dir
+ mkdir FTBA_unix_202208131844-e5790011d3-release.sh.60420.dir
+ '[' '!' -d FTBA_unix_202208131844-e5790011d3-release.sh.60420.dir ']'
+ cd FTBA_unix_202208131844-e5790011d3-release.sh.60420.dir
+ '[' 0 -ne 0 ']'
++ pwd
+ sfx_dir_name=/home/neko/Downloads/FTBA_unix_202208131844-e5790011d3-release.sh.60420.dir
+ '[' W/home/neko/Downloads = W/home/neko/Downloads/FTBA_unix_202208131844-e5790011d3-release.sh.60420.dir ']'
+ trap 'cd "$old_pwd"; rm -R -f "$sfx_dir_name"; exit 1' HUP INT QUIT TERM
+ tail -c 1940676 /home/neko/Downloads/FTBA_unix_202208131844-e5790011d3-release.sh
+ '[' 0 -ne 0 ']'
+ gunzip sfx_archive.tar.gz

gzip: sfx_archive.tar.gz: not in gzip format
+ '[' 1 -ne 0 ']'
+ echo ''

+ echo 'I am sorry, but the installer file seems to be corrupted.'
I am sorry, but the installer file seems to be corrupted.
+ echo 'If you downloaded that file please try it again. If you'
If you downloaded that file please try it again. If you
+ echo 'transfer that file with ftp please make sure that you are'
transfer that file with ftp please make sure that you are
+ echo 'using binary mode.'
using binary mode.
+ returnCode=1
+ cd /home/neko/Downloads
+ '[' '!' 'W ' = 'W yes' ']'
+ rm -R -f /home/neko/Downloads/FTBA_unix_202208131844-e5790011d3-release.sh.60420.dir
+ exit 1

and since its only grabbing jdk 17.0.1 and not any of the newer versions i think could as well have the line you stated hardcoded into the script for the time being.

Shadowphoenix avatar Aug 15 '22 00:08 Shadowphoenix

also, someone on discord who tried to help me debug this found this: image

which leads to errors like the following when plain opening and saving the script with kate and trying to run it after, even though kate and nano show emptyness in the suggested spaces

neko@OwOwatsDIS ~/Downloads> sh -x FTBA_unix_202208131844-e5790011d3-release.sh
+ $'\r'
FTBA_unix_202208131844-e5790011d3-release.sh: Zeile 2: $'\r': Kommando nicht gefunden.
+ $'\r'
FTBA_unix_202208131844-e5790011d3-release.sh: Zeile 7: $'\r': Kommando nicht gefunden.
+ $'\r'
FTBA_unix_202208131844-e5790011d3-release.sh: Zeile 8: $'\r': Kommando nicht gefunden.
+ INSTALL4J_JAVA_PREFIX=$'\r'
+ GREP_OPTIONS=$'\r'
+ $'\r'
FTBA_unix_202208131844-e5790011d3-release.sh: Zeile 11: $'\r': Kommando nicht gefunden.
FTBA_unix_202208131844-e5790011d3-release.sh: Zeile 12: Syntaxfehler beim unerwarteten Symbol »$'{\r'«
FTBA_unix_202208131844-e5790011d3-release.sh: Zeile 12: fill_version_numbers() {

Shadowphoenix avatar Aug 15 '22 00:08 Shadowphoenix

Also - and i mean that not as an offense - the script automatically DELETING EVERYTHING when failing is just not helpful at all. it can clean up after itself if it works thats fine but me having download the jre each time because it immideatly deletes everything when encountering a slight inconvenience is DUMB and not in the slightest helpful when bugfixing this.

Me commenting out all the invokes of the rm -R with kate or nano breaks the scripts with either of the errors I mentioned above and so does adding a simple cp before line 680 to catch the files before they get deleted. To me as someone who just wasted about i think close to 2 hours trying to get this to work this is frustrating at best.

Shadowphoenix avatar Aug 15 '22 01:08 Shadowphoenix

I've modified parts of the Linux installer script to be more verbose. https://github.com/BinToss/verbose-ftb-app-linux-installer/releases/tag/v0.0.1 I'll force-push a v0.0.0 in a minute so a proper DIFF is available.

edit: I've become impatient toward Git's or VSCode's behavior of changing data when staging a file; I'm splitting the binary data into a separate file.

edit: To split the binary data from the script, I... ...made a copy of the original script, ...opened it in WinMerge's hex editor, ...deleted the script text, ...saved the file as data.bin, ...copied data.bin to my local git repo, ...stripped the binary data from the script in the repo, and then applied my changes to the script content. Next up: re-routing any paths for the script's binary data to data.bin.

BinToss avatar Aug 15 '22 04:08 BinToss

image btw this is what https://www.soscisurvey.de/tools/view-chars.php makes of the first lines of the script

Shadowphoenix avatar Aug 15 '22 05:08 Shadowphoenix

I encountered this issue, too. After trying some of the fixes mentioned in this thread to no avail, I solved it by first installing openjdk-17-jre and openjdk-17-jdk from the command line with "sudo apt-get install", then running the .sh script.

andyglover avatar Aug 15 '22 20:08 andyglover

@Shadowphoenix I forgot to add in my comment that the file needed to be edited in binary mode, which is why you experienced the issue where the it reports corrupt installer. I used Vim with the -b flag, I do not think this is even possible with nano :shrug:

husjon avatar Aug 15 '22 23:08 husjon

L458 and L460 output the last n bytes of the script file to sfx_archive.tar.gz containing "install4j". image

With this now known, I've moved the binary data byte-for-byte to a new file https://github.com/BinToss/verbose-ftb-app-linux-installer/releases/tag/v0.0.2 Can someone test this and let me know of any issues they run into whilst FTBA_unix.sh and sfx_archive.tar.gz are in the same directory?

BinToss avatar Aug 16 '22 05:08 BinToss

@BinToss

Thanks for the attempted fix, as I am also trying to install the FTB app on Linux (Mint 20.3).

I've tried the two files you linked and get: bash: ./FTBA_unix.sh: /bin/sh^M: bad interpreter: No such file or directory If I edit the file in vim with the -b flag I see ^M characters at the end of every line in the FTBA_unix.sh file. The original .sh file doesn't have these characters. I stripped out the windows-style EOL characters using: dos2unix FTBA_unix.sh

Now the shell has a syntax error at line 306 in regards to: fi echo "blah..." ..Which I fixed by putting the echo on its own line.

Now the shell says: gzip: sfx_archive.tar.gz: not in gzip format which is true: tar xvfz sfx_archive.tar.gz gives: gzip: stdin: not in gzip format

enrique556 avatar Aug 20 '22 21:08 enrique556

@BinToss

Thanks for the attempted fix, as I am also trying to install the FTB app on Linux (Mint 20.3).

I've tried the two files you linked and get: bash: ./FTBA_unix.sh: /bin/sh^M: bad interpreter: No such file or directory If I edit the file in vim with the -b flag I see ^M characters at the end of every line in the FTBA_unix.sh file. The original .sh file doesn't have these characters. I stripped out the windows-style EOL characters using: dos2unix FTBA_unix.sh

Now the shell has a syntax error at line 306 in regards to: fi echo "blah..." ..Which I fixed by putting the echo on its own line.

Now the shell says: gzip: sfx_archive.tar.gz: not in gzip format which is true: tar xvfz sfx_archive.tar.gz gives: gzip: stdin: not in gzip format

Thank you for reporting these issues!

I could have sworn I'd set the line endings to LF. Must be a Git checkin/checkout setting I missed.

I'll have to move the echo at L306 to the beginning of L307. I wanted to keep the lines' contents near-exact and made unhighlighted syntax errors here and there in doing so. This was intended to allow us to continue to refer to the script contents by their line.

I'll also double-check the original script's offset for the gzip blob. It was my assumption that the entire binary blob was gzip data. It opens properly in NanaZip (a 7-zip fork). image This warning is odd. Because the blob was copied byte-for-byte, there shouldn't be any post-payload data that the script doesn't explicitly add. The fact that the archive type changed is also strange.

BinToss avatar Aug 20 '22 23:08 BinToss

@enrique556 @Shadowphoenix Pushed and published v0.0.3 with updated L306/L307 content and SFX archive format. https://github.com/BinToss/verbose-ftb-app-linux-installer/releases/tag/v0.0.3

So far, there's no actual fixes to the original install procedure. This script + archive combo is for helping diagnose issues whereas the original script would reveal issues later than is preferable.

BinToss avatar Aug 21 '22 01:08 BinToss

@enrique556 @Shadowphoenix Pushed and published v0.0.3 with updated L306/L307 content and SFX archive format. https://github.com/BinToss/verbose-ftb-app-linux-installer/releases/tag/v0.0.3

So far, there's no actual fixes to the original install procedure. This script + archive combo is for helping diagnose issues whereas the original script would reveal issues later than is preferable.

i tried what @husjon suggested and that worked. will try to seek out the place where they store the script on github and send a pushrequest.

Shadowphoenix avatar Aug 21 '22 10:08 Shadowphoenix

a more recent working version can be found here:

https://github.com/Shadowphoenix/FTB-APP-Linuxinstaller-Fix

Shadowphoenix avatar Aug 21 '22 10:08 Shadowphoenix

I'm on ARCH (manjaro). I think I have my paths set correctly, but still having an issue installing:

Starting Installer ...

WARNING: A terminally deprecated method in java.lang.System has been called WARNING: System::setSecurityManager has been called by com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor (file:/home/nadonate/Downloads/FTBA.sh.123665.dir/i4jruntime.jar) WARNING: Please consider reporting this to the maintainers of com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor WARNING: System::setSecurityManager will be removed in a future release java.lang.NoClassDefFoundError: Could not initialize class java.awt.Component at java.desktop/javax.swing.ImageIcon$2.run(ImageIcon.java:147) at java.desktop/javax.swing.ImageIcon$2.run(ImageIcon.java:145) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.desktop/javax.swing.ImageIcon.createNoPermsComponent(ImageIcon.java:144) at java.desktop/javax.swing.ImageIcon$1.run(ImageIcon.java:123) at java.desktop/javax.swing.ImageIcon$1.run(ImageIcon.java:120) at java.base/java.security.AccessController.doPrivileged(AccessController.java:318) at java.desktop/javax.swing.ImageIcon.(ImageIcon.java:120) at com.install4j.runtime.installer.frontend.GUIHelper.loadIcon(GUIHelper.java:195) at com.install4j.runtime.installer.frontend.GUIHelper.(GUIHelper.java:55) at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:81) at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.(ConsoleScreenExecutor.java:24) at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.(InstallerConsoleScreenExecutor.java:6) at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:91) at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:60) at com.install4j.runtime.installer.Installer.main(Installer.java:46) 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.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84) at com.install4j.runtime.launcher.UnixLauncher.start(UnixLauncher.java:66) at install4j.Installer465309369.main(Unknown Source) An error occurred: java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit Error log: /tmp/install4jError5625146814912319264.log java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit at java.desktop/javax.swing.ImageIcon.(ImageIcon.java:215) at java.desktop/javax.swing.ImageIcon.(ImageIcon.java:234) at com.install4j.runtime.installer.frontend.GUIHelper.loadIcon(GUIHelper.java:195) at com.install4j.runtime.installer.frontend.GUIHelper.(GUIHelper.java:55) at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:81) at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.(ConsoleScreenExecutor.java:24) at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.(InstallerConsoleScreenExecutor.java:6) at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:91) at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:60) at com.install4j.runtime.installer.Installer.main(Installer.java:46) 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.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84) at com.install4j.runtime.launcher.UnixLauncher.start(UnixLauncher.java:66) at install4j.Installer465309369.main(Unknown Source)

error-log

Nadonate avatar Aug 27 '22 20:08 Nadonate

I'm on ARCH (manjaro). I think I have my paths set correctly, but still having an issue installing:

Starting Installer ...

WARNING: A terminally deprecated method in java.lang.System has been called WARNING: System::setSecurityManager has been called by com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor (file:/home/nadonate/Downloads/FTBA.sh.123665.dir/i4jruntime.jar) WARNING: Please consider reporting this to the maintainers of com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor WARNING: System::setSecurityManager will be removed in a future release java.lang.NoClassDefFoundError: Could not initialize class java.awt.Component at java.desktop/javax.swing.ImageIcon$2.run(ImageIcon.java:147) at java.desktop/javax.swing.ImageIcon$2.run(ImageIcon.java:145) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.desktop/javax.swing.ImageIcon.createNoPermsComponent(ImageIcon.java:144) at java.desktop/javax.swing.ImageIcon$1.run(ImageIcon.java:123) at java.desktop/javax.swing.ImageIcon$1.run(ImageIcon.java:120) at java.base/java.security.AccessController.doPrivileged(AccessController.java:318) at java.desktop/javax.swing.ImageIcon.(ImageIcon.java:120) at com.install4j.runtime.installer.frontend.GUIHelper.loadIcon(GUIHelper.java:195) at com.install4j.runtime.installer.frontend.GUIHelper.(GUIHelper.java:55) at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:81) at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.(ConsoleScreenExecutor.java:24) at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.(InstallerConsoleScreenExecutor.java:6) at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:91) at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:60) at com.install4j.runtime.installer.Installer.main(Installer.java:46) 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.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84) at com.install4j.runtime.launcher.UnixLauncher.start(UnixLauncher.java:66) at install4j.Installer465309369.main(Unknown Source) An error occurred: java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit Error log: /tmp/install4jError5625146814912319264.log java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit at java.desktop/javax.swing.ImageIcon.(ImageIcon.java:215) at java.desktop/javax.swing.ImageIcon.(ImageIcon.java:234) at com.install4j.runtime.installer.frontend.GUIHelper.loadIcon(GUIHelper.java:195) at com.install4j.runtime.installer.frontend.GUIHelper.(GUIHelper.java:55) at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:81) at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.(ConsoleScreenExecutor.java:24) at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.(InstallerConsoleScreenExecutor.java:6) at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:91) at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:60) at com.install4j.runtime.installer.Installer.main(Installer.java:46) 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.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84) at com.install4j.runtime.launcher.UnixLauncher.start(UnixLauncher.java:66) at install4j.Installer465309369.main(Unknown Source)

error-log

what version of the script have you been running? i provided a link to a repo with a working-for-me recent version of the script above, maybe that works?

Shadowphoenix avatar Aug 27 '22 20:08 Shadowphoenix

@Shadowphoenix - yes, I'm using the last script you posted..

Nadonate avatar Aug 27 '22 23:08 Nadonate

@Shadowphoenix - yes, I'm using the last script you posted..

Resolved, once full JRE was installed, thanks.

Nadonate avatar Aug 28 '22 16:08 Nadonate

@Shadowphoenix - yes, I'm using the last script you posted..

Resolved, once full JRE was installed, thanks.

guess i will have to look into that issue, i will see if i can replicate it.

Shadowphoenix avatar Aug 28 '22 18:08 Shadowphoenix

I'm on ARCH (manjaro). I think I have my paths set correctly, but still having an issue installing:

Starting Installer ...

WARNING: A terminally deprecated method in java.lang.System has been called WARNING: System::setSecurityManager has been called by com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor (file:/home/nadonate/Downloads/FTBA.sh.123665.dir/i4jruntime.jar) WARNING: Please consider reporting this to the maintainers of com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor WARNING: System::setSecurityManager will be removed in a future release java.lang.NoClassDefFoundError: Could not initialize class java.awt.Component at java.desktop/javax.swing.ImageIcon$2.run(ImageIcon.java:147) at java.desktop/javax.swing.ImageIcon$2.run(ImageIcon.java:145) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.desktop/javax.swing.ImageIcon.createNoPermsComponent(ImageIcon.java:144) at java.desktop/javax.swing.ImageIcon$1.run(ImageIcon.java:123) at java.desktop/javax.swing.ImageIcon$1.run(ImageIcon.java:120) at java.base/java.security.AccessController.doPrivileged(AccessController.java:318) at java.desktop/javax.swing.ImageIcon.(ImageIcon.java:120) at com.install4j.runtime.installer.frontend.GUIHelper.loadIcon(GUIHelper.java:195) at com.install4j.runtime.installer.frontend.GUIHelper.(GUIHelper.java:55) at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:81) at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.(ConsoleScreenExecutor.java:24) at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.(InstallerConsoleScreenExecutor.java:6) at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:91) at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:60) at com.install4j.runtime.installer.Installer.main(Installer.java:46) 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.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84) at com.install4j.runtime.launcher.UnixLauncher.start(UnixLauncher.java:66) at install4j.Installer465309369.main(Unknown Source) An error occurred: java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit Error log: /tmp/install4jError5625146814912319264.log java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit at java.desktop/javax.swing.ImageIcon.(ImageIcon.java:215) at java.desktop/javax.swing.ImageIcon.(ImageIcon.java:234) at com.install4j.runtime.installer.frontend.GUIHelper.loadIcon(GUIHelper.java:195) at com.install4j.runtime.installer.frontend.GUIHelper.(GUIHelper.java:55) at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:81) at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.(ConsoleScreenExecutor.java:24) at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.(InstallerConsoleScreenExecutor.java:6) at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:91) at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:60) at com.install4j.runtime.installer.Installer.main(Installer.java:46) 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.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84) at com.install4j.runtime.launcher.UnixLauncher.start(UnixLauncher.java:66) at install4j.Installer465309369.main(Unknown Source)

error-log

This same thing is happening to me, even though I have Java 17,11 and 1.8.0 installed. What do I do? How did you get around this? Thanks in advance.

lucascgar avatar Sep 13 '22 18:09 lucascgar