PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

build issue windows & linux

Open McJazzy opened this issue 10 years ago • 5 comments

after updating module I get:

C:\Users\Michiel\Desktop\java_bot_src>gradlew --refresh-dependencies clean build

:clean UP-TO-DATE :PokeGOAPI-Java:clean :PokeGOAPI-Java:extractIncludeProto :PokeGOAPI-Java:extractProto UP-TO-DATE :PokeGOAPI-Java:generateProto :PokeGOAPI-Java:compileJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':PokeGOAPI-Java:compileJava'.

    Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_91 contains a valid JDK installation.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

That dir points to a valid JRE installation. I run into the same issue on Linux..

McJazzy avatar Jul 24 '16 17:07 McJazzy

same problem here

tomtobac avatar Jul 24 '16 18:07 tomtobac

check if you have a JAVA_HOME set as a system environment variable and make sure it points to your JDK folder. close command prompt reopen... retry

Cypherke avatar Jul 24 '16 18:07 Cypherke

I tried reinstalling JDK, not JRE and it worked for me. http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

ghost avatar Jul 24 '16 18:07 ghost

Installed the new JDK and it worked for me

Scoboose avatar Jul 24 '16 18:07 Scoboose

Installed JDK and worked here too.

McJazzy avatar Jul 24 '16 18:07 McJazzy