Forum: GameBots2004

Eclipse: Selection Does Not Contain A Main Type

Hi, i want to program gamebots for ut2004 (in Eclipse,), One bot from teacher from my school working good, but projects from .../trunk/project/Archetypes/UT2004 is not working
I do: Eclipse/ import / maven/ existing maven project / and for example 00-EmptyBot, then run... , then Eclipse report : Selection Does Not Contain A Main Type, while folder contains just one class EmptyBot.java ( and has public static void main(String args[]) ..)

pls help

thank you, Lukas
Hi!

These projects are not meant to be executed by the Eclipse directly.

Nevertheless, it should be working when:

1) you locate bot's main class (usually something like EmptyBot.java, HunterBot.java, etc.)
2) right-click the whole project in the Package explorer and click Run As -> Maven Package
3) wait till the project is built (and review whether it BUILD SUCCESS (!)
4) right-click the bot's main class in Package explorer and Run As -> Java Application

Best,
Jakub