Difference between revisions of "Robocode/NetBeans/Configure"

From Robowiki
Jump to navigation Jump to search
(Created page with '<p>Hi all!!</p> <p>Let's take a little break. I have a lot of projects and homework to do, so I don't have enough time to understand and improve my robot. So sad, you know? I wan…')
 
(youtube links)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<p>Hi all!!</p>
+
{{Youtube|8SGniJwsQrI|Configuring NetBeans}}
<p>Let's take a little break. I have a lot of projects and homework to do, so I don't have enough time to understand and improve my robot. So sad, you know? I want to play but I can't!! :(</p>
+
 
<p>Last week, my friends asked me why he can't compile his robot. I saw his screen and I found that he used RoboEditor to compile his robot. I'm not sure about RoboEditor. I don't know there are some utilities about java or not. I mean LinkedList, math functions or something like that. Because I usually use NetBeans or Eclipse to edit my robot, I recommended him to download and use NetBeans instead.</p>
+
This article shows how to configure [http://www.netbeans.org/ NetBeans] in order to use it in building a [[Robocode]] robot.
<p>Today I will show you how to configure NetBeans in order to create your robot. I think it's easy way to edit your robot because you don't have to worry about what the error is, NetBeans can tell you what it is!!</p>
+
 
<p><strong>How to configure NetBeans</strong></p>
+
== Software Requirements ==
<p>First, you have to download <strong><span style="color: #ff0000;">NetBeans IDE</span>http://www.netbeans.org/</strong></p>
+
* [http://www.netbeans.org/ NetBeans]
<p>&gt; go to<span style="color: #ff0000;"><strong> Tools</strong></span> &gt; <strong><span style="color: #ff0000;">Libraries</span></strong> and then the <strong>Library Manager</strong> will be shown.</p>
+
 
<p>http://ifourth.net/pic/27-6-2552%2021-23-07.png</p>
+
== Configure the NetBeans ==
<p>&gt; Click <strong><span style="color: #ff0000;">New Library</span></strong></p>
+
Firstly, we go to '''Tools > Libraries''' to start the '''Library Manager'''
<p>&gt; Type<strong> <span style="color: #0000ff;">robocode</span></strong> or something you want in <strong>Library Name</strong></p>
+
 
<p>&gt; Click <span style="color: #ff0000;"><strong>OK</strong></span></p>
+
[[Image:Robocode-netbean1.gif]]
<p>http://ifourth.net/pic/27-6-2552%2021-34-50.png</p>
+
 
<p>&gt; After finishing add  library</p>
+
Select the '''New Library''' button.
<p>&gt; Click<strong> your library name</strong> at the left hand side</p>
+
 
<p>&gt; Click <strong><span style="color: #ff0000;">Add JAR/Folder</span></strong></p>
+
Then, type the name of the library, for instance '''robocode'''. Click '''OK'''.
<p>&gt; Select <strong>robocode library</strong> from<strong><span style="color: #ff0000;"> \robocode\libs\</span></strong></p>
+
 
<p>&gt; Click <strong><span style="color: #ff0000;">Add JAR/Folder</span></strong></p>
+
[[Image:Robocode-netbean2.gif]]
<p>&gt; Click <strong><span style="color: #ff0000;">OK</span></strong></p>
+
 
<p><span style="color: #ff0000;"><strong>*** location of library is depended on your robocode directory***</strong></span></p>
+
Next, on the left hand side select the library you have just created and click on the '''Add JAR/Folder''' button on the right.
<p>And then you have to add Robocode Library into your project.</p>
+
 
<p>http://ifourth.net/pic/27-6-2552%2021-59-20.png</p>
+
Navigate yourself to the '''libs''' folder in the main folder of [[Robocode]] and select '''robocode'''. Finish this by clicking the '''Add JAR/Folder''' button.
<p>&gt; Right click on <strong><span style="color: #ff0000;">Libries project</span></strong></p>
+
 
<p>&gt; Click <span style="color: #ff0000;"><strong>Add Library</strong></span></p>
+
== Adding the Robocode Library to an existing project ==
<p>http://ifourth.net/pic/27-6-2552%2022-04-58.png</p>
+
 
<p>&gt; Select your <strong><span style="color: #ff0000;">Robocode Library</span></strong></p>
+
[[Image:Robocode-netbean3.gif]]
<p>&gt; Click <span style="color: #ff0000;"><strong>Add Library</strong></span></p>
+
 
<p>After finishing add library into your project, you have to let Robocode program to know where your robots are.</p>
+
Right mouse click on '''Libraries''' in your project. Then, select the '''Add Library''' button.
<p>http://ifourth.net/pic/27-6-2552%2022-10-50.png</p>
+
 
<p>&gt; Click <strong><span style="color: #ff0000;">Add</span></strong></p>
+
[[Image:Robocode-netbean4.gif]]
<p>&gt; Select the location of your robots</p>
+
 
<p>&gt; Click <span style="color: #ff0000;"><strong>Finish</strong></span></p>
+
Select your '''Robocode Library''' and click '''Add Library'''.
<p><span style="color: #ff0000;"><strong>***You have to create your project in NetBeans first and the location is \build\classes***</strong></span></p>
+
 
<p><strong>Finish!!!!</strong></p>
+
== Showing Robocode where your robots are =={{Youtube|spgPy5D8G9Q|Setting Robocde Development Paths}}
<p>Now, you can create your robot with NetBeans :)</p>
+
 
<p>If you have some problem about configure it, you can ask in comment box. I will come and answer soon!!</p>
+
[[Image:Robocode-netbean5.gif]]
 +
 
 +
From the [[Robocode]] GUI select the '''Options''' drop-down menu, then  '''Preferences'''.
 +
 
 +
Go to the '''Development Options''' tab and click the '''Add''' button.
 +
 
 +
Finally, select the '''location''' of your robots and click '''Finish'''.
 +
 
 +
Remember to create first the NetBeans project and then to select the location of your robots.
 +
 
 +
== See also ==
 +
 
 +
=== Using Eclipse IDE ===
 +
* [[Robocode/Eclipse|Using Eclipse as IDE]]
 +
* [[Robocode/Add_a_Robot_Project|Add robot project from an IDE into Robocode]]
 +
* [[Robocode/Eclipse/Create_a_Robot|Creating a robot in Eclipse]]
 +
* [[Robocode/Running from Eclipse|Running your robot from Eclipse]]
 +
* [[Robocode/Eclipse/Debugging Robot|Debugging your robot with Eclipse]]
 +
 
 +
=== Robot API ===
 +
* [http://robocode.sourceforge.net/docs/robocode/ Robot API]
 +
 
 +
=== Tutorials ===
 +
* [[Robocode/System Requirements|System Requirements for Robocode]]
 +
* [[Robocode/Download|How to download and install Robocode]]
 +
* [[Robocode/Robot Anatomy|The anatomy of a robot]]
 +
* [[Robocode/Getting Started|Getting started with Robocode]]
 +
* [[Robocode/My First Robot|My First Robot Tutorial]]
 +
* [[Robocode/Game Physics|Robocode Game Physics]]
 +
* [[Robocode/Scoring|Scoring in Robocode]]
 +
* [[Robocode/Robot Console|Using the robot console]]
 +
* [[Robocode/Downloading_Robots|Downloading other robots]]
 +
* [[Robocode/Learning from Robots|Learning from other robots]]
 +
* [[Robocode/Package Robot|Package your robot]]
 +
* [[Robocode/FAQ|Frequently Asked Questions (FAQ)]]
 +
* [[Robocode/Articles|Articles about Robocode]]
 +
* [[Robocode/Console Usage|Starting Robocode from the command line]]
 +
* [[Robocode/Graphical_Debugging|Graphical debugging]]
 +
 
 +
=== News and Releases ===
 +
* [http://sourceforge.net/export/rss2_project.php?group_id=37202 RSS Feeds for the Robocode project]
 +
* [http://sourceforge.net/project/showfiles.php?group_id=37202&package_id=29609 Robocode file releases]
 +
 
 +
=== Home pages ===
 +
* [http://robocode.sourceforge.net/ Classic homepage]
 +
* [http://sourceforge.net/projects/robocode Robocode project at SourceForge]
 +
* [http://robocoderepository.com/ Robocode Repository]
 +
* [[wikipedia:Robocode|Wikipediaentry for Robocode]]
 +
 
 +
[[Category:Robocode Documentation]]
 +
[[Category:Tutorials]]

Latest revision as of 07:58, 15 October 2012

Youtube
Youtube has a video of Configuring NetBeans in action: click here to watch

This article shows how to configure NetBeans in order to use it in building a Robocode robot.

Software Requirements

Configure the NetBeans

Firstly, we go to Tools > Libraries to start the Library Manager

Robocode-netbean1.gif

Select the New Library button.

Then, type the name of the library, for instance robocode. Click OK.

Robocode-netbean2.gif

Next, on the left hand side select the library you have just created and click on the Add JAR/Folder button on the right.

Navigate yourself to the libs folder in the main folder of Robocode and select robocode. Finish this by clicking the Add JAR/Folder button.

Adding the Robocode Library to an existing project

Robocode-netbean3.gif

Right mouse click on Libraries in your project. Then, select the Add Library button.

Robocode-netbean4.gif

Select your Robocode Library and click Add Library.

Showing Robocode where your robots are

Youtube
Youtube has a video of Setting Robocde Development Paths in action: click here to watch

Robocode-netbean5.gif

From the Robocode GUI select the Options drop-down menu, then Preferences.

Go to the Development Options tab and click the Add button.

Finally, select the location of your robots and click Finish.

Remember to create first the NetBeans project and then to select the location of your robots.

See also

Using Eclipse IDE

Robot API

Tutorials

News and Releases

Home pages