what do i run main.kt with?
i cant find out why i cant run main.kt
You have to build the project with gradlew
I did already
once you've built the project you should have a compiled .jar found at \build\libs
if you do gradlew tasks you'll see all options just do a run and will execute the project
@D3C1V3R after the project completed i didnt get any fold besides . gradle thats it
@aleixsb i got a build fail
so there is your problem, check your java instalation or copy here the build error.
Have you just cloned this repo? There is a small bug right now that you can fix simply edditing Main.kt you can follow the fix in #41
To run the program, do gradlew run
If you have a build fail, post the error message.
@pr0ves unresolved reference:PTCLogin
PTCLogin() is a function from the PokemonGoAPI, and gradle doesn't find it.
Try to run again gradlew build and see if it downloads anything, it should download the libraries needed for programs.
Just change PTCLogin to PtcLogin everywere. PokeGOAPI renamed the class.
another error now it cant compile java
Did you replace the code on Main.tk in line 175 for this:
auth = PtcLogin(http).login(username, properties.getProperty("password"))
and line 26 for this:
import com.pokegoapi.auth.PtcLogin
I think you only need to replace this and do gradlew build on your projects folder.
i changed that already
The import line too?
Try again gradlew build and post the full message error
@pr0ves ERROR: JAVA_HOME is not set and 'java' command could be found in your PATH
Not code related.
Read the "manual" (the 3 lines).
i did that but i cant run the main.kt
If you're not a programmer, download the .jar from the releases tab and run it directly with Java 1.7+.
If you would be a programmer, you'd know that you have to do ./gradlew build
(if you build it before ./gradlew --refresh-dependencies clean build)
correction its .\gradlew build and its say some shit about my java