PokeMate icon indicating copy to clipboard operation
PokeMate copied to clipboard

How to properly compile the .jar using gradlew

Open FreakySt0rm opened this issue 8 years ago • 19 comments

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 :\

FreakySt0rm avatar Jul 25 '16 21:07 FreakySt0rm

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.

jeffsnow88 avatar Jul 25 '16 21:07 jeffsnow88

Thanks for that Jeff. Just downloading intelijj IDEA Ultimate. I'll let you know how it goes ;)

FreakySt0rm avatar Jul 25 '16 21:07 FreakySt0rm

image

In intellij it should just work with this...

kyleshrader avatar Jul 25 '16 21:07 kyleshrader

Make sure you have the plugin installed for gradle. I am using community version

kyleshrader avatar Jul 25 '16 21:07 kyleshrader

Np man. Let me know if you can pass login part. Im stuck there.

jeffsnow88 avatar Jul 25 '16 21:07 jeffsnow88

@kyleshrader how do you install the gradle plugin?

jc030201 avatar Jul 25 '16 22:07 jc030201

untitled

Im lost, and stuck. What am i doing wrong?

eBunny6 avatar Jul 25 '16 22:07 eBunny6

@eBunny6 right click on build.gradle and select run Then right click on PokeMate.java and select run

SwipeX avatar Jul 26 '16 02:07 SwipeX

image 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

kyleshrader avatar Jul 26 '16 06:07 kyleshrader

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.

eBunny6 avatar Jul 26 '16 06:07 eBunny6

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?

eBunny6 avatar Jul 26 '16 16:07 eBunny6

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.

rawkus123 avatar Jul 27 '16 00:07 rawkus123

If you want build a standalone jar with all dependencies use this command : gradle fatJar (or ./gradlew fatJar if you don't have gradle)

BurakDev avatar Jul 27 '16 00:07 BurakDev

ok but still doesnt open up a GUI...

rawkus123 avatar Jul 27 '16 00:07 rawkus123

As @SwipeX said, you need run it from command line if you use Google Auth.

How are you running it ?

BurakDev avatar Jul 27 '16 00:07 BurakDev

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

rawkus123 avatar Jul 27 '16 00:07 rawkus123

moved my issue to topic #106

rawkus123 avatar Jul 27 '16 01:07 rawkus123

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.

eBunny6 avatar Jul 27 '16 04:07 eBunny6

For the UI to show up, change the property show=false to show=true in config file.

MihaelBercic avatar Aug 01 '16 06:08 MihaelBercic