Table of Contents
Nastavení projektu v NetBeans
Přidání existujících souborů
NetBeans
Nastavení argumentů
Spuštění
Nastavení projektu v NetBeans
Přidání existujících souborů
Ze stranky cviceni si stahnete zdrojove kody bludiste ci reversi.
Rozbalte soubory do pripraveneho adresare (napr. d:\workspace\bludiste)
NetBeans
Otevřete Netbeans IDE
Z menu vyberte File → New Project
Zvolte
Java
a
Java Project with existing sources
Vyplňte jméno projektu (bludiste) a jeho umístění (napr. d:\workspace\bludiste)
Pokračujte tlačítkem Next>
Na další záložce přidejte zdrojové soubory pomocí tlačítka Add Folder… (vyberte adresář d:\workspace\bludiste\src)
Nastavení argumentů
V menu zvolte položku Run → Set Project Configuration → Customize …
Vyplňte Main class = rph.labyrinth.Labyrinth (pro reversi rph.reversi.Reversi)
Vyplňte Arguments = configuration.xml
Spuštění
Spustíte klávesou F6
nebo Run→ Run Main Project
nebo zeleným tlačítkem Run z panelu nástrojů