PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

Unable to access pogo.scraper-all-0.5.0-alpha4.jar

Open OMAoxide opened this issue 10 years ago • 13 comments

Description: [I have been trying to get this to work for a while but i do not know what i am doing.]

Steps to reproduce:

  1. [Step 1]
  2. [Step 2]

Expected behavior: [What should happen?]

Actual behavior: [What actually happens]

Stacktrace (If it's a crash): [Please use pastebin if it's too long]

Version: [The version of the bot you used; when self-compiled: :exclamation: the commit hash :exclamation:]

Operating System: [Your operating system]

Java version: [Full output of java -version]

OMAoxide avatar Aug 01 '16 19:08 OMAoxide

Make sure you are in the working directory of where the JAR file is located by using the command cd c:\pogobot\ (or wherever you have saved it)

Sieberkev avatar Aug 01 '16 19:08 Sieberkev

@Sieberkev I just created a folder and named it pokemongobot and i put config.properties and pogo.scraper-all-0.5.0-alpha4.jar in to it. Then in terminal i typed cd desktop. then cd pokemongobot. After that i put in the command java -jar pogo.scraper-all-0.5.0-alpha4.jar I then got "Exception in thread "main" java.io.FileNotFoundException: config.properties (No such file or directory)"

OMAoxide avatar Aug 01 '16 19:08 OMAoxide

Ok. So here's what you do. Open Terminal (or command prompt if on Windows), type cd (type the space as well), then drag and drop the folder with the .jar file and config.properties file. Then type java -jar, then drag and drop the .jar file. IDK if drag and dropping a folder or file into the Command Prompt works on Windows, but you get the idea.

TL;DR: Open Terminal if you're on macOS or Linux, or Command Prompt if on Windows, type in cd *full path of the directory with the. jar and config.properties file, then type in java -jar pogo.scraper-all-0.5.0-alpha4.jar

This is what my Terminal looks like:

Yashendras-MacBook-Air:~ yashendra2797$ cd /Users/yashendra2797/Documents/Scripts/Pokemon\ Go\ Bot Yashendras-MacBook-Air:Pokemon Go Bot yashendra2797$ java -jar pogo.scraper-all-0.5.0-alpha4.jar

EDIT: I'm an idiot who didn't read OP's second comment. Follow @Cypherke's advice, and rename config.properties.template to config.properties. And put it in the same folder as the .jar.

yashendra2797 avatar Aug 01 '16 19:08 yashendra2797

and i quote

I then got "Exception in thread "main" java.io.FileNotFoundException: config.properties (No such file or directory)"

now let me quote the readme

Rename ./config.properties.template to ./config.properties

Cypherke avatar Aug 01 '16 19:08 Cypherke

@yashendra2797 i did all of that and i got and heres what it looks like

kevin-moores-MacBook-Pro-2:~ kaelinmoore$ cd /Users/kaelinmoore/Desktop/PokemonGoBot kevin-moores-MacBook-Pro-2:PokemonGoBot kaelinmoore$ java -jar pogo.scraper-all-0.5.0-alpha4.jar Exception in thread "main" java.io.FileNotFoundException: config.properties (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.(FileInputStream.java:138) at java.io.FileInputStream.(FileInputStream.java:93) at ink.abb.pogo.scraper.MainKt.main(Main.kt:79) kevin-moores-MacBook-Pro-2:PokemonGoBot kaelinmoore$

OMAoxide avatar Aug 01 '16 19:08 OMAoxide

Make sure the filename is config.properties and not config.properties.txt

Sieberkev avatar Aug 01 '16 20:08 Sieberkev

do a 'ls' (or dir) of the directory where the scraper is found and post results here.

Parry1217 avatar Aug 01 '16 20:08 Parry1217

i thought the file was already config.properties but i was wrong. Thank you all for helping me.

OMAoxide avatar Aug 01 '16 20:08 OMAoxide

how should i put in the latitude and longitude it keeps saying failed to interpret

OMAoxide avatar Aug 01 '16 20:08 OMAoxide

latitude=50.123
longitude=-60.123

Rofii avatar Aug 01 '16 20:08 Rofii

#london latitude=51.4771710742996 longitude=-0.0019324966935413

Parry1217 avatar Aug 01 '16 20:08 Parry1217

thanks

OMAoxide avatar Aug 01 '16 20:08 OMAoxide

@OMAoxide Use this for Lat/Long: http://www.gps-coordinates.net

yashendra2797 avatar Aug 01 '16 20:08 yashendra2797