Re: Is it possible to launch robocode with netbeans?

"flemmingnlarsen" <[email protected]>
Newsgroups gmane.comp.java.robocode
Message-ID <[email protected]>
Hi Lothar,
Yes, this is possible.
First of all, you need to add a development path that points to your
robots classes in your NetBeans project.In Robocode, select this from
the menu: Options -> Preferences ->Development Options.Press the Add
button to browse to your development path in NetBeans. It could be
something like this:
R:\NetBeansProjects\MyRobots\build\classes
Note, that you should point at the 'classes' folder to get it right.
Secondly, you need to set your project configuration regarding running
your robot. You do this within your project in NetBeans from the menu:
Run -> Set Project Configuration ->Customize...Under the Run category,
you first create a new configuration, which you could name Robocode.Next
you field out the following fields and values:
Main Class: RobocodeWorking Directory: C:\robocodeVM Options: -Xmx512M
-Dsun.io.useCanonCaches=false
Note, your working directory should point to where you have installed
Robocode.The VM options must refelect the options specified in the
robocode.bat, robocode.sh and robocode.cmd file (they are set to the
same options in all these startup scripts).
Now you can press F6 or select Run -> Run Main Project from the menu,
and Robocode will start up.
You need to start up a new battle, and here your robot(s) should show
up, if you have added the development path into where your robot(s)
reside in the NetBeans project.
Tip & trickIf (or rather when) you get tired of starting a new battle
all the time, then create a new battle with the opponent robots and
battle field configuration you need, and save the battle, e.g. with the
name test.battle.
Next, you return to the project configuration (menu: Run -> Set Project
Configuration ->Customize... under the Run configuration), and set this
additional parameter:
Arguments: -battle test.battle
This will tell Robocode to start up with your battle automatically.
I hope this helps?
Regards,- Flemming
--- In [email protected], Lothar Hernandez <lotharhernandez@...>
wrote:
>
> I was wondering if it is possible to launch robocode within netbeans.
> And if so how. Sincerily,
>                  Lothar
>
> Sent from my iPod
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.