PokeMate
PokeMate copied to clipboard
How to properly compile the .jar using gradlew
Hi, could you supply instructions for compiling the .jar from the updated source? I keep getting issues when I try to build the project using gradlew :\
Hi, I just download the file in .zip format, extracted and then imported in intelijj IDEA as recommended by SwipeX.
However, i'm still having problems in login part. Hope that can help you.
Thanks for that Jeff. Just downloading intelijj IDEA Ultimate. I'll let you know how it goes ;)
In intellij it should just work with this...
Make sure you have the plugin installed for gradle. I am using community version
Np man. Let me know if you can pass login part. Im stuck there.
@kyleshrader how do you install the gradle plugin?
Im lost, and stuck. What am i doing wrong?
@eBunny6 right click on build.gradle and select run Then right click on PokeMate.java and select run
Clicking this button will show the console output... you can get the auth code and put it in the google.com/devices site... and from there you're good
I got it past the code for google devices, now im stuck with some error from pokemon servers. It similar to the one error from the closed issue of TheJeffSnow88. Im posting from mobile, and i cant link anything. As soon as i get home from work ill post more details.
Ok, i resolved all the issues i had, its running smoothly. Still, how do i get it to show the UI? Its all happening in IntelliJ, text only. Run PokeMateUI?
yeah i have no idea how to run the GUI either... console runs sweet, and i can load the UI in IDEA aswell but nothing populates.
If you want build a standalone jar with all dependencies use this command : gradle fatJar (or ./gradlew fatJar if you don't have gradle)
ok but still doesnt open up a GUI...
As @SwipeX said, you need run it from command line if you use Google Auth.
How are you running it ?
ill list the steps ive used so far... Download source / zip... extract to x:\PokeMate.... Config.properties changed Download PokeMate.jar from releases tab place in x:\PokeMate Run from cmdline: java -jar pokemate.jar starts command line bot.....
Install IDEA and import project.... Run from Application-Run in right hand pane view of grandle Runs command line bot inside IDEA....
Run gradlew.bat from CMD ... Gradle completes (checked via gradlew from prompt) use cmd: gradlew fatjar ... build is successful use cmd: gradlew run starts cmd line bot all these attempts are fresh attempts aswell new directory etc... Forgot to mention the bots run fine in cmd though... just would like a GUI lol
moved my issue to topic #106
Everything was working smooth, until couple of hrs ago. Now when i run it, it just says i need to change config file. No matter what, it just displays single line of text, change config.properties in order to run this program.
For the UI to show up, change the property show=false to show=true in config file.