Slipstream mod manager can't find java after installing `brew install openjdk`, what should I do?

Today I freshly installed Bazzite on my computer to try the following tutorial. I was advised here (https://discordapp.com/channels/1072614816579063828/1282667481936298015/1282693482816864319) to install java with this command. I ran brew install openjdk, brew install openjdk@21 and brew install openjdk@17, and followed this tutorial (https://tinyurl.com/FTLmultiverse). At step 24, I got the output shown on the attached screenshot. I tried brew uninstall openjdk@21 and brew uninstall openjdk@17 if the multiple versions was the issue, but same output. I tried previously the same on Bazzite (see linked discord thread), and I got through step 24 (and instead got stuck at step 39). What should I do?
No description
Solution:
try running the script manually from the terminal
Jump to solution
7 Replies
termdisc
termdisc3mo ago
can you run java in a terminal?
Maxi
MaxiOP3mo ago
Yes, outputted a long usage manual.
termdisc
termdisc3mo ago
can you run command -v java?
Maxi
MaxiOP3mo ago
Yes, outputted /home/linuxbrew/.linuxbrew/bin/java. When inserted into the bottom-left corner start menu and ran, it seemingly loads something (cursor animation shows up) but nothing shows up.
termdisc
termdisc3mo ago
I can tell you what the script is attempting to do but not why it's failing
# Search in $PATH among other places.
java_cmd=$(command -v java);

# OSX uses a command to decide java's location (or prompt the user to install it).
if [ -x "/usr/libexec/java_home" ]; then
export JAVA_HOME=$(/usr/libexec/java_home --request)

if [ -n "${JAVA_HOME}" ]; then
java_cmd=${JAVA_HOME}/bin/java
fi
fi

if [ -n "${java_cmd}" ]; then

echo "";
echo "Found java at: ${java_cmd}";
echo "";

"${java_cmd}" -jar modman.jar;

else

echo "";
echo "This script was unable to find java."
echo "";

fi
# Search in $PATH among other places.
java_cmd=$(command -v java);

# OSX uses a command to decide java's location (or prompt the user to install it).
if [ -x "/usr/libexec/java_home" ]; then
export JAVA_HOME=$(/usr/libexec/java_home --request)

if [ -n "${JAVA_HOME}" ]; then
java_cmd=${JAVA_HOME}/bin/java
fi
fi

if [ -n "${java_cmd}" ]; then

echo "";
echo "Found java at: ${java_cmd}";
echo "";

"${java_cmd}" -jar modman.jar;

else

echo "";
echo "This script was unable to find java."
echo "";

fi
this is the code that deals with finding java
java_cmd=$(command -v java);
This is essentially what I had you run last but assigned to a variable
if [ -n "${java_cmd}" ]; then
This verifies if the variable exists, i.e., is nonzero that shouldn't be failing but appears to be doing so maybe it's a permissions thing as in the script can't reach into /home/linuxbrew
Solution
termdisc
termdisc3mo ago
try running the script manually from the terminal
Maxi
MaxiOP3mo ago
If it matters, I tried it on Fedora KDE spin and it worked as expected at this step (and instead got stuck at step 39, green play button turns to blue for a few seconds as it would start, and then reverts back to green without opening anything), and on Nobara it worked fully and was able to run the program after some tries, but during (everyday) usage I got frequent and random desktop envoirment restart crashes. It opened the GUI and worked as expected. I followed the other steps, and got stuck again at step 39. Because this issue is beyond the post's original thing, I'll mark this comment as an answer, thank you for helping! Do you have recommendations about what to do regarding the non-starting Steam game issue?
Want results from more Discord servers?
Add your server