<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://robowiki.net/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Daan</id>
	<title>Robowiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://robowiki.net/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Daan"/>
	<link rel="alternate" type="text/html" href="http://robowiki.net/wiki/Special:Contributions/Daan"/>
	<updated>2026-04-28T06:47:02Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>http://robowiki.net/w/index.php?title=Talk:Robocode/Add_a_Robot_Project&amp;diff=19584</id>
		<title>Talk:Robocode/Add a Robot Project</title>
		<link rel="alternate" type="text/html" href="http://robowiki.net/w/index.php?title=Talk:Robocode/Add_a_Robot_Project&amp;diff=19584"/>
		<updated>2011-06-12T18:02:41Z</updated>

		<summary type="html">&lt;p&gt;Daan: Guava sortof works now. :)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi all. I have some problems with it. &lt;br /&gt;
I create an eclipse project, then copy to this project sample folder from robocode/robots (as example). &lt;br /&gt;
Then in robocode I open options-&amp;gt;preferences-&amp;gt;Development options and add path to the bin folder of my project (it has the same sample folder with compiled by eclipse class files). Is this correct? &lt;br /&gt;
The problem is that the New submenu in robocode main window remains empty after that, I don't see my classes. If there is no any custom classpath in the Development options, robocode again can see default packages without problems. What could it be?&lt;br /&gt;
Operating system: Mandriva Linux&lt;br /&gt;
--[[User:Eredory|Eredory]] 18:24, 7 August 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Hm, this sounds quite odd. Perhaps set the eclipse project up so the source and the bin directories are the same? (In the new project wizard, &amp;quot;Use project folter as root for sources and class files&amp;quot; instead of &amp;quot;Create seperate folders for sources and class files&amp;quot;) I've always found it works more smoothly that way. --[[User:Rednaxela|Rednaxela]] 01:59, 8 August 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
I use same directory for binaries as well, and also I prefer the [[Robocode/Running from Eclipse|running from Eclipse]] method, I think is much better. The ''problem'' is that it uses a new robot directory, so at the beginning is empty or with your robot only, but you can copy the samples or any other bots into it. What I do is remove source folder src, create a source folder called robots, exclude from robots build path &amp;quot;.robotcache/&amp;quot; (without the quotes), and the rest is set up as the page posted above. --[[User:Zyx|zyx]] 04:39, 8 August 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Hey guys. I would like to use an external library (Google Guava) for my robot, and it seems fine in Eclipse, but when I add the class directory of Google Guava to the Development tab I get tons of errors, mostly in the form of ''Preventing unknown thread Robocode main thread from access: (java.lang.RuntimePermission getClassLoader)''. Do you perhaps have any tips for me on how to proceed? --[[User:Daan|Daan]] 14:51, 12 June 2011 (UTC)&lt;br /&gt;
&lt;br /&gt;
Funny, I've been thinking about that same library myself recently. I guess Robocode runs the entire workspace through the security checks that Robocode uses? (Like preventing classloaders, apparently, and doing raw file I/O.) Or are you actually using classloaders? I have Eclipse's output directory set to Robocode/robots and no setting in Robocode itself, but that's probably a silly setup (and will delete your entire robots dir if you're not careful). If you want other people to run your Guava-using robot, though, you'll need to have the Guava classes you use present in your robot JAR. The [http://www.apache.org/licenses/LICENSE-2.0 Apache License] appears to allow this. Maybe try just copying the packages/classes you need into your development space? Good luck, let us know what you come up with. --[[User:Voidious|Voidious]] 16:09, 12 June 2011 (UTC)&lt;br /&gt;
&lt;br /&gt;
Thanks for your response Voidious! It seems indeed to have something to do with Robocode's security manager; it has a problem with some of the classes inside guava (classes which I'm not using). After some testing I found out that if you add guava's jar to the JVM classpath it works though. :) In regard to the final robot jar; I guess I could include the contents of guava into it and perhaps use ProGuard to remove all unused classes (which would include the offending classes). --[[User:Daan|Daan]] 18:02, 12 June 2011 (UTC)&lt;/div&gt;</summary>
		<author><name>Daan</name></author>
		
	</entry>
	<entry>
		<id>http://robowiki.net/w/index.php?title=Talk:Robocode/Add_a_Robot_Project&amp;diff=19574</id>
		<title>Talk:Robocode/Add a Robot Project</title>
		<link rel="alternate" type="text/html" href="http://robowiki.net/w/index.php?title=Talk:Robocode/Add_a_Robot_Project&amp;diff=19574"/>
		<updated>2011-06-12T14:51:36Z</updated>

		<summary type="html">&lt;p&gt;Daan: How can I use external libraries?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi all. I have some problems with it. &lt;br /&gt;
I create an eclipse project, then copy to this project sample folder from robocode/robots (as example). &lt;br /&gt;
Then in robocode I open options-&amp;gt;preferences-&amp;gt;Development options and add path to the bin folder of my project (it has the same sample folder with compiled by eclipse class files). Is this correct? &lt;br /&gt;
The problem is that the New submenu in robocode main window remains empty after that, I don't see my classes. If there is no any custom classpath in the Development options, robocode again can see default packages without problems. What could it be?&lt;br /&gt;
Operating system: Mandriva Linux&lt;br /&gt;
--[[User:Eredory|Eredory]] 18:24, 7 August 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Hm, this sounds quite odd. Perhaps set the eclipse project up so the source and the bin directories are the same? (In the new project wizard, &amp;quot;Use project folter as root for sources and class files&amp;quot; instead of &amp;quot;Create seperate folders for sources and class files&amp;quot;) I've always found it works more smoothly that way. --[[User:Rednaxela|Rednaxela]] 01:59, 8 August 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
I use same directory for binaries as well, and also I prefer the [[Robocode/Running from Eclipse|running from Eclipse]] method, I think is much better. The ''problem'' is that it uses a new robot directory, so at the beginning is empty or with your robot only, but you can copy the samples or any other bots into it. What I do is remove source folder src, create a source folder called robots, exclude from robots build path &amp;quot;.robotcache/&amp;quot; (without the quotes), and the rest is set up as the page posted above. --[[User:Zyx|zyx]] 04:39, 8 August 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
Hey guys. I would like to use an external library (Google Guava) for my robot, and it seems fine in Eclipse, but when I add the class directory of Google Guava to the Development tab I get tons of errors, mostly in the form of ''Preventing unknown thread Robocode main thread from access: (java.lang.RuntimePermission getClassLoader)''. Do you perhaps have any tips for me on how to proceed? --[[User:Daan|Daan]] 14:51, 12 June 2011 (UTC)&lt;/div&gt;</summary>
		<author><name>Daan</name></author>
		
	</entry>
</feed>