Loading...
 

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
 

News

News RSS RSS feed for News link



Pogamut

Quarterly RSS RSS feed for quarterly reports

Acknowledgement

This work is supported by GA UK 1053/2007/A-INF/MFF (2007-8), GA UK 351/2006/A-INF/MFF (2006-8), the Ministry of Education of the Czech Republic (grant MSM0021620838) (2008-9), by the Program "Information Society" under project 1ET100300517 (2006-9), and the project Integration of IT Tools into Education of Humanities (2006-8) and by the project CZ.2.17/3.1.00/31162, which are financed by the European Social Fund, the state budget of the Czech Republic, and by the budget of Municipal House Prague.