romanovaccaCreated Sunday, February 21st 2016 @ 19:31:50
I downloaded the block battle starterbot for python, together with the enige from Github. I import the starterbot in eclipse. I tried running it in my terminal via java -cp bin com.theaigames.blockbattle.Blockbattle "python /Users/romanovacca/Downloads/blockbattle-starterbot-python-1/BotRun.py" "python /Users/romanovacca/Downloads/blockbattle-starterbot-python-1/BotRun.py" 2>err.txt 1>out.txt
But then i get the error that Error: Could not find or load main class com.theaigames.blockbattle.Blockbattle
Then i tried importing the engine in eclipse, and within block battle.java, adjusted the dev_mode to true, but then the same error: Error: Could not find or load main class com.theaigames.blockbattle.Blockbattle
What am i doing wrong?
DeveloperCreated Monday, February 22nd 2016 @ 09:05:43
Did you compile first? And then run the command from the right folder?
romanovaccaUpdated Monday, February 22nd 2016 @ 13:52:58
I made 2 projects in eclipse, one for blockbattle-starterbot and one for block battle-engine. Then when I compile and run this :
javac -d bin/ `find ./ -name '*.java' -regex '^[./A-Za-z0-9]*$'`
The terminal says javac: no source files Usage: javac
Also, im using a mac, don't know if that matters? i'm sure i ran the right folder.
DeveloperCreated Monday, February 22nd 2016 @ 13:54:29
Well it says it can't find any source files, so compile fails. Try looking online for a solution to compile a java project on mac, I don't really know how that works as I'm using Linux.