PDA

View Full Version : Troubleshooting



Sijtze Roar
May 3rd, 2018, 11:32
hi there. i love this idea...


but sadly i have trouble running my gradlew.bat.

doesnt work..


it says i need to set my javapath for it to work.

but the only place i found to input javapath was wonky :

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

..


while my java path is C:\ProgramData\Oracle\Java\javapath
But when i try to add it to the bat file it still says cant find java path.

so can antybody help me??

tonihele
May 4th, 2018, 23:36
Hmm, have you checked Gradle's pages? It should be as simple as install Java and then just run. We have some instructions in the Wiki but they don't cover any troubleshooting..

Sijtze Roar
May 5th, 2018, 00:34
Hmm, have you checked Gradle's pages? It should be as simple as install Java and then just run. We have some instructions in the Wiki but they don't cover any troubleshooting..


That ' just running the bat file' only works if your java is on the same locaciton as mentioned in the batfile

tonihele
May 5th, 2018, 10:01
Ok, are you using Windows? You could try to add Java straight to system variables. %JAVA_HOME% refers to system variable of the same name. Surely you can try to hard code this to the one BAT file. But I suspect that you you'll face the same problem with OpenKeeper.bat then.

Just add the JAVA_HOME and if it doesn't work, you can also add to the PATH variable straight:
https://stackoverflow.com/questions/1672281/environment-variables-for-java-installation

impboy4
June 21st, 2018, 17:38
Since MGR wanted his thread back, we'll use this thread instead.

tonihele
June 21st, 2018, 18:05
Yep better, it went off topic anyway with the reverse engineering talk, which has anyway another topic, and then this. But yeah. JDK then, better try it.