- Created Wednesday, September 24th 2014 @ 15:11:34
Can't understand what i'm doing wrong here. I modified java starter bot and tried to upload for the first time but it doesn't work. Are there any rules about the code that i'm not aware of?
Error dump Error: Could not find or load main class src.somePackage.MyBot
Input dump Output dump Running testcase /opt/aigames/etc/testsheadsupomaha/testheadsupomaha.txt... Testing Bot with setup input... ... finished testcase in 0.219999998808 seconds Test failed: no output
DeveloperCreated Wednesday, September 24th 2014 @ 15:15:31
You've probably compressed the folder containing the source files instead of the files themselves.
- Created Wednesday, September 24th 2014 @ 15:20:00
Compressed starting from package this time and it worked.
- Created Thursday, December 18th 2014 @ 21:45:21
hijacking since i have the same issue but don't really understand the proposed solution.
This is what the file i uploaded looks like: https://www.dropbox.com/s/k4trt1ltaal3cwe/src.rar?dl=0
I'm sure the fix is simple but i tried a few different versions off this and couldn't get it to work :-/
- Created Tuesday, March 31st 2015 @ 17:45:18
Got the same problem, but at runtime, not at compile time:
Error dump Error: Could not find or load main class src.bot.BotStarter
- Updated Tuesday, March 31st 2015 @ 17:52:43
Please post a link to the error log
- Created Monday, May 23rd 2016 @ 16:46:03
I have the same problem at runtime apparently: http://theaigames.com/my/bots/5743157d5d203c4128cc86c5/1/errors/io-test
- Created Monday, May 23rd 2016 @ 18:57:12
Do you have any ideas why those classes aren't found?
- Created Tuesday, May 24th 2016 @ 08:43:12
Does your bot work locally when run from the command line? Also you can't have the files in folders that aren't on the classpath. Look at a java starterbot to see how it's done.
- Created Tuesday, May 24th 2016 @ 10:55:12
It works for me locally, and I'm not using any folders - everything in the compressed file is coming from one package. I used the starterbot as framework. I'm sure it's a really simple error... Could you tell me how exactly the bot is called? Is it a problem if more classes than BotStarter have a main method?
- Created Tuesday, May 24th 2016 @ 11:45:13
Apparently that has nothing to do with it. So all my java files are in a package "bot"; I'm compressing them all (not the folder "bot", just the java files) into a zip file and uploading it; it seems to compile, but it fails the input test due to several classes (not sure why these classes and not others) not being found. Am I missing something obvious?
- Created Wednesday, May 25th 2016 @ 08:44:09
It is a problem if there is more than 1 main method, yes. I'm pretty sure there is something with the classpaths. Have you tried to compile/run from the command line? (not with eclipse or whatever.)
- Created Wednesday, May 25th 2016 @ 10:47:56
It gave the same result when I removed all main methods except for the one in BotStarter. I don't quite understand what you mean by classpath - the classpath is a property of your environment, no? How could I influence that? I can start BotStarter from the command line without problem (when I'm in the folder of the class files, since that's the default classpath)
- Created Sunday, June 5th 2016 @ 21:56:00
jim could you help me with this? Would be a pity if I wrote the bot for nothing... I don't see from your instructions what could be missing.
- Created Monday, June 6th 2016 @ 08:47:10
There is definitely some problem with your bot. It might be a good idea to upload the starterbot, confirm that that one works, and then trying to spot the differences from that one to fix your one.