New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java error on startup when using a custom JRE #2284
Comments
This error occurs when running on a JRE. Your INSTALL4J_JAVA_HOME also indicates this. Running it from a JDK should work. |
I have also seen this error be caused by antivirus. |
Not on Linux 😛 |
For whomever reads this issue - on my openSUSE system, installing these packages fixed it: from a 5 minute google search - a JRE is a runtime, a JDK is a full development kit. Somehow, the runtime isn't enough (anymore) so the entire dev kit is needed. Install it - and 🚀 Not sure if this issue should remain open - I can imagine a JRE is supposed to be sufficient to run the faf client, but I can also imagine this ain't the most important problem (all it takes is a quick installation of a few libs and a bit of disk space):
|
I believe we have some critical components which need the jdk |
You're right @jospoortvliet, the JDK shouldn't be required. Thanks to the information provided by you we should be able to fix this, I'll look into it |
It's enabled by default but doesn't work with a JRE. See also: https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/reactor/DebugAgentEnvironmentPostProcessor.html Fixes #2284
I submitted #2285. Does this really not happen with a JRE on Windows or are we using a JDK now? |
The client is currently packaged with a jdk these days |
Oh wait no I am totally wrong I think |
But regardless it does not happen on windows. And this is the first case I have heard of with Linux as well. But I did think when I made the packaged java for install4j that it was based on the jdk and not the jre |
Install4J should create a JRE based on the JDK. There should be no reason to ship a JDK. |
Yeah I have to check what it is we have on the content server that is being pulled when we build |
Hi team, esp @micheljung @Sheikah45 the problem is back. My solution, installing EDIT: back in 2023.10.0 - and with Java 21, indeed. Still openSUSE Tumbleweed (it has rolled a fair bit further obviously). |
I had readded the reactor debug agent for some debugging help when people give me logs and forgot this was an issue but I guess it is just expected now. |
Allright, works for me of course. I would suggest somebody put this in documentation - somewhere. I volunteer to be 'somebody'. I cannot change the wiki or figure out how to submit a PR to do so, but the Linux install guide links to a wrong page: Meanwhile I will try and update the wiki page and/or report under https://github.com/FAForever/faf-linux Thanks! EDIT: looking at wiki & other locations, it seems the "do it yourself" I did just isn't documented much beyond the wiki, which is using ubuntu/debian. The only suggestion I'd make is to add a note to install I don't think it's relevant for the linux-install script. |
Hi,
starting the client, I get this in a dialog:
and on the command line, this:
Version 1.4.3 still works for me, 1.4.4, 1.4.5 and 1.4.6 as well as 1.4.7RC1 all have this problem. Log file for 1.4.5 for example contains:
OS: Linux 5.12.10 on openSUSE Tumbleweed
Java: openJDK 15.0.3.0
What can I do to help debug this?
The text was updated successfully, but these errors were encountered: