- Updated Thursday, January 5th 2017 @ 00:01:46
I submitted a bot earlier today, but it gave me this error:
Error dump Java HotSpot(TM) 64-Bit Server VM warning: No monotonic clock was available - timed services may be adversely affected if the time-of-day clock changes Error: Could not find or load main class TestBot.src.bot.Bot
Input dump Output dump Running testcase /opt/aigames/etc/teststictactoe/testtictactoe.txt... Testing Bot with setup input... ... finished testcase in 0.120000001043 seconds Test failed: no output
Why does it say "Could not find or load main class TestBot.src.bot.Bot" when such a class is indeed present in my zip file? Has anyone else experienced this problem?
DeveloperCreated Thursday, January 5th 2017 @ 08:50:15
That probably means the folders in your .zip file are not the same as your classpaths. So the folder TestBot should be directly in the .zip file, then src, bot and then Bot.java. If you don't understand completely, look at the Java starterbot.
- Created Friday, January 6th 2017 @ 22:08:43
@jim Thanks, I think that is the problem. I submitted the starter bot ZIP file without any changes and it worked; after that, I replaced all the files in the starter bot ZIP with my own and it still worked, so it must be something I'm doing when I export the Java project from Eclipse. Does the usual File-->Export not work?
DeveloperCreated Tuesday, January 10th 2017 @ 08:51:27
You just have to zip the source files, no need to use eclipse.