Sokobot icon indicating copy to clipboard operation
Sokobot copied to clipboard

Cannot compile

Open DavidDGTNT opened this issue 4 years ago • 10 comments

I'm kind of a beginner to Java, and I can't seen to be able to compile the Jar, even in my copy of IntelliJ. It ends with BUILD SUCCESSFUL, but when I run the jar, it cannot find the Bot class. I'm also a beginner to JDA (not to bot making though!) and can't figure out myself. I cloned the repo with GitHub Desktop, then compiled it with the respective command in the README. Then I created a token.txt and placed my token inside. I ran java -jar Sokobot-1.1-all.jar in my WSL, and it didn't work (I have an alias set up to forward java to java.exe on the host system).

DavidDGTNT avatar Jan 08 '21 19:01 DavidDGTNT

What does the console outputs??

ghost avatar Jan 17 '21 12:01 ghost

It cannot find the Bot class. I don't feel like running the program rn, but that's all it says other than the usual compiling

DavidDGTNT avatar Jan 26 '21 14:01 DavidDGTNT

@dugo3number2 try running it without the token file. You will be prompted to enter your token and it will create a file for you. You could also download the jar from the release folder.

mandar1jn avatar Mar 22 '21 13:03 mandar1jn

@dugo3number2 try running it without the token file. You will be prompted to enter your token and it will create a file for you. You could also download the jar from the release folder.

Thanks! I'll try it!

DavidDGTNT avatar Mar 30 '21 23:03 DavidDGTNT

maybe the same? #42

T0biii avatar Apr 27 '21 11:04 T0biii

maybe the same? #42

I have a Pi, but I'm doing this on my PC. I'll look at it and reply back with my school account @dugo3number3

DavidDGTNT avatar Apr 28 '21 20:04 DavidDGTNT

maybe the same? #42

I have a Pi, but I'm doing this on my PC. I'll look at it and reply back with my school account @dugo3number3

It is exactly the same, thanks for the help! I won't close the issue until I get a chance to try it at home.

dugo3number3 avatar Apr 28 '21 20:04 dugo3number3

maybe some need this in docker, i tried to build it with Docker: https://github.com/T0biii/Sokobot/blob/master/Dockerfile https://github.com/T0biii/Sokobot/blob/master/docker-compose.yml Still need to change the https://github.com/T0biii/Sokobot/blob/master/build.gradle

T0biii avatar Apr 28 '21 21:04 T0biii

maybe some need this in docker, i tried to build it with Docker: https://github.com/T0biii/Sokobot/blob/master/Dockerfile https://github.com/T0biii/Sokobot/blob/master/docker-compose.yml Still need to change the https://github.com/T0biii/Sokobot/blob/master/build.gradle

I'm pretty good in Docker, so if you need any help, let me know. Also, please post it to the Docker Hub

DavidDGTNT avatar May 06 '21 01:05 DavidDGTNT

maybe some need this in docker, i tried to build it with Docker: https://github.com/T0biii/Sokobot/blob/master/Dockerfile https://github.com/T0biii/Sokobot/blob/master/docker-compose.yml Still need to change the https://github.com/T0biii/Sokobot/blob/master/build.gradle

I'm pretty good in Docker, so if you need any help, let me know. Also, please post it to the Docker Hub

you can simple build it with docker-compose build. but if @PolyMarsDev want to Publish it on Docker Hub he can. I can do a Pull Request for the Dockerfiles if it is needed

T0biii avatar May 08 '21 12:05 T0biii