Open fengelhardt opened 1 year ago
did you unpack it into new/clean folder?
did you unpack it into new/clean folder?
Yes, this is even my first real FAF installation. I tried around a bit a year ago, but did not come this far. Could there be any residuals on my system from my previous attempt?
hm strange. I just downloaded this release from github release page, unpack and run with command as you provided (to my path java[oracle, temurin]) and it worked without issues. ClassNotFoundException evokes either wrong/incomplete archive, or when extracted to same folder as previous version something makes conflicts in libraries
Btw, specifying the lib
folder in the class path does also not help:
LC_ALL=C INSTALL4J_JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64/ JDK_JAVA_OPTIONS="--class-path ~/opt/faf/lib" ./faf-client
returns
NOTE: Picked up JDK_JAVA_OPTIONS: --class-path ~/opt/faf/lib
Error: Could not find or load main class install4j.com.faforever.client.Main
Caused by: java.lang.ClassNotFoundException: install4j.com.faforever.client.Main
Although I can find it here manually:
jar -tf lib/faf-client-2022.11.0-plain.jar | grep "client/Main"
com/faforever/client/Main.class
Ok, had some luck with that :
java -cp lib/*:native/* com.faforever.client.Main
That brings up the launcher. Basically, I have just removed the "install4j." prefix from the class name. I did not test anything further, though. Not sure if the game runs now, but the launcher does.
Replacing install4j.com.faforever.client.Main
by com.faforever.client.Main
in the faf-client
file also works.
that is really strange. I was confused about that install4j package prefix as well, but I assumed it's some install4j magic, because I have that in executable script and it doesn't make any issue.
Describe the bug
Running the
faf-client
script throwsjava.lang.ClassNotFoundException
To Reproduce
Adapted from the video tutorial from tatsu:
faf_unix_2022_11_0.tar.gz
from github and unpack.INSTALL4J_JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64/ ./faf-client
Log or error message
This is the error I get:
Expected behavior
The FAF client should start.
OS
lsb_release -a
:java --version
:ls -la /usr/bin/java
:ls -la /etc/alternatives/java
ls -la ~/opt/faf
:Thanks a lot! Frank