Difference between revisions of "Robocode/NetBeans/Configure"

From Robowiki
Jump to navigation Jump to search
m (mark as cleanup, I'm too lazy to do it now)
(Cleaned-up, Re-arranged the structure, Uploaded the screenshots)
Line 1: Line 1:
{{cleanup}}
+
This article shows how to configure [http://www.netbeans.org/ NetBeans] in order to use it in building a [[Robocode]] robot.
 +
== Software Requirements ==
 +
* [http://www.netbeans.org/ NetBeans]
 +
== How to configure NetBeans ==
 +
Firstly, we go to '''Tools > Libraries''' to start the '''Library Manager'''
 +
[[Image:Robocode-netbean1.gif]]
  
<p>Hi all!!</p>
+
Select the '''New Library''' button.
<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>
+
Then, type the name of the library, for instance '''robocode'''. Click '''OK'''.
<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>
+
[[Image:Robocode-netbean2.gif]]
<p>First, you have to download <strong><span style="color: #ff0000;">NetBeans IDE</span>http://www.netbeans.org/</strong></p>
+
 
<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>
+
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>http://ifourth.net/pic/27-6-2552%2021-23-07.png</p>
+
 
<p>&gt; Click <strong><span style="color: #ff0000;">New Library</span></strong></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; 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>
+
== Adding the '''Robocode Library''' to an existing project ==
<p>http://ifourth.net/pic/27-6-2552%2021-34-50.png</p>
+
 
<p>&gt; After finishing add  library</p>
+
[[Image:Robocode-netbean3.gif]]
<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>
+
Right mouse click on '''Libraries''' in your project. Then, select the '''Add Library''' button.
<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-netbean4.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>
+
Select your '''Robocode Library''' and click '''Add Library'''.
<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>
+
== Showing Robocode where your robots are ==
<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>
+
[[Image:Robocode-netbean5.gif]]
<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>
+
 
<p>&gt; Click <span style="color: #ff0000;"><strong>Add Library</strong></span></p>
+
From the [[Robocode]] GUI select the '''Options''' drop-down menu, then  '''Preferences'''.
<p>After finishing add library into your project, you have to let Robocode program to know where your robots are.</p>
+
 
<p>http://ifourth.net/pic/27-6-2552%2022-10-50.png</p>
+
Go to the '''Development Options''' tab and click the '''Add''' button.
<p>&gt; Click <strong><span style="color: #ff0000;">Add</span></strong></p>
+
 
<p>&gt; Select the location of your robots</p>
+
Finally, select the '''location''' of your robots and click '''Finish'''.
<p>&gt; Click <span style="color: #ff0000;"><strong>Finish</strong></span></p>
+
 
<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>
+
Remember to create first the NetBeans project and then to select the location of your robots.
<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>
+
== 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]]

Revision as of 04:44, 13 November 2009

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

Software Requirements

How to configure 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

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