FAForever / downlords-faf-client

Official client for Forged Alliance Forever
https://faforever.com
MIT License
196 stars 121 forks source link

launch script does point to set java enviroments on Manjaro/arch #2413

Closed coreybruce closed 2 years ago

coreybruce commented 2 years ago

Describe the bug The launch script does not point to the correct location where java versions are set on Manjaro/Arch and thinks java 16 for example isn't installed.

No suitable Java Virtual Machine could be found on your system.
The version of the JVM must be 15.

For example on Manjaro/Arch we can use the archlinux-java command to set our default version of java

image

To Reproduce Steps to reproduce the behavior: Ran the script

Log or error message This is my log file:

No suitable Java Virtual Machine could be found on your system.
The version of the JVM must be 15.

Expected behavior A clear and concise description of what you expected to happen. Game runs

Screenshots image

I even followed the steps from here: https://wiki.faforever.com/index.php?title=Setting_Up_FAF_Linux#Set_INSTALL4J_JAVA_HOME

and that didn't do anything sadly.

OS Manjaro Linux

Wanna have the bug fixed quickly? Visit Issue hunt... Issue hunt

Sheikah45 commented 2 years ago

The wiki is out of date. Use this thread https://forum.faforever.com/topic/12/linux-support?page=1

coreybruce commented 2 years ago

I'm confused, how does this forum post help? it doesn't also give me a answer to the issue.

Could you please give me a straight direct answer on how to fix this?

Sheikah45 commented 2 years ago

That forum post is the main location for discussion on setting up the client in linux. I do not run nor support the client in linux so cannot answer your issue personally and right now their are no developers who support it for linux.

That thread also contains scripts and instructions for installing the client in linux that other users have found. You are probably best off making a message in that thread.

Brutus5000 commented 2 years ago

You misinterpret the error message. It's not complaining about missing Java, but about wrong version. Effectively duplicate of https://github.com/FAForever/downlords-faf-client/issues/2298

Askaholic commented 2 years ago

I actually set up the client on Manjaro yesterday with adopt OpenJDK 15 and it worked fine.

coreybruce commented 2 years ago

I actually set up the client on Manjaro yesterday with adopt OpenJDK 15 and it worked fine.

What package did you use? where is openjdk15? also isn't this this being updated to support java 15?

Askaholic commented 2 years ago

I downloaded Adopt OpenJDK 15 from the archive page that Sheikah posted in this forum thread:

https://forum.faforever.com/topic/1754/installing-on-linux-with-java-15?_=1635898690721

Here’s the link: https://adoptopenjdk.net/archive.html