I am trying to get into Minecraft Fabric Mod Development and got into my first snag as Java is not in Path or Home I tried following some of the things said in previous comments and even looked at the Help Center but no results I did however somehow managed to add this:
`JDK_VERSION="17"
case "$JDK_VERSION" in
8) JDK_PATH="/usr/lib/openjdk-8/bin"
;;
11) JDK_PATH="/usr/lib/openjdk-11/bin"
;;
17) JDK_PATH="/usr/lib/openjdk-17/bin"
;;
*) echo "JDK_VERSION $JDK_VERSION is not an option"
;;
esac
if [[ -d $JDK_PATH ]]; then
export PATH=$JDK_PATH:$PATH
fi`
into my bashrc and manage to get it working, but Java commands are not present in terminal.