Open danny-weiss opened 5 months ago
Hey. I think the paths should point to C:\Program Files\Java\jdk-1.8\bin
. Also, you should usually have to set these paths, as they are usually set while installing. You know things work when java
and javac
commands work.
I tried setting the JAVA_HOME path to C:\Program Files\Java\jdk-1.8\bin but it unfortunately didn't work. But also, I discovered that when I set the JAVA_HOME variable to C:Program Files, java -version still works and returns java 1.8 I think it's not the JAVA_HOME variable that makes java work but a path variable to C:Program Files\Common Files\Oracle\Java\Javapath
@danny-weiss I unfortunately do not have much concrete tips to give here. But I do know that you should have java
and javac
commands available anywhere in the system (and also in the WSL, since you are on Windows) to be able to install. I would personally just reinstall things if env variables were screwed up like that 😅
I've tried uninstalling and reinstalling the WSL but it didn't really work, is there an alternative bash command line I can use?
@danny-weiss Unfortunately I do not have any additional tips to give here. There was a more hacky approach to do this installation by using mingw (installing it, pointing to the right bash.exe, etc), but that has been finnicky to setup and not highly recommended.
The main thing you need is the bash and the commands used by this script.
I've been trying to install this but keep getting this error log:
I think my java is set up wrong but when I do java -version on my WSL and command line I get 1.8.x, I set up the java_home variable with these commands: setx JAVA_HOME "C:\Program Files\Java\jdk-1.8" setx WSLENV "JAVA_HOME/p"
And it seems to be pointing to the right file, but the program can't recognize it as a java file maybe?