<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 37:  Robot imported based on a jar file cannot run due to error: loader constraint violation</title><link>https://sourceforge.net/p/robocode/support-requests/37/</link><description>Recent changes to 37:  Robot imported based on a jar file cannot run due to error: loader constraint violation</description><atom:link href="https://sourceforge.net/p/robocode/support-requests/37/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 24 Oct 2023 20:01:55 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/robocode/support-requests/37/feed.rss" rel="self" type="application/rss+xml"/><item><title>#37  Robot imported based on a jar file cannot run due to error: loader constraint violation</title><link>https://sourceforge.net/p/robocode/support-requests/37/?limit=25#7901/59ad</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have created a new release 1.9.5.2 just now. You can download it from here:&lt;br/&gt;
&lt;a href="https://sourceforge.net/projects/robocode/files/robocode/1.9.5.2/robocode-1.9.5.2-setup.jar"&gt;https://sourceforge.net/projects/robocode/files/robocode/1.9.5.2/robocode-1.9.5.2-setup.jar&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Flemming N. Larsen</dc:creator><pubDate>Tue, 24 Oct 2023 20:01:55 -0000</pubDate><guid>https://sourceforge.netc25890a74fa720cb5774aa499155fed662323c44</guid></item><item><title>#37  Robot imported based on a jar file cannot run due to error: loader constraint violation</title><link>https://sourceforge.net/p/robocode/support-requests/37/?limit=25#7901</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a class="user-mention" href="/u/fnl/"&gt;@fnl&lt;/a&gt; Thank you for you quick response, I will try it.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">darren</dc:creator><pubDate>Tue, 24 Oct 2023 01:12:38 -0000</pubDate><guid>https://sourceforge.net2be094bf93b20add305b03e28c1f3f2b9de9794b</guid></item><item><title>#37  Robot imported based on a jar file cannot run due to error: loader constraint violation</title><link>https://sourceforge.net/p/robocode/support-requests/37/?limit=25#375a/85a3</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have made a fix in the RobotClassLoader that works on my system, and I should like you to try it out with an alpha version of the next version 1.9.5.2:&lt;br/&gt;
&lt;a href="https://robocode.sourceforge.io/files/robocode-1.9.5.2-alfa-setup.jar" rel="nofollow"&gt;https://robocode.sourceforge.io/files/robocode-1.9.5.2-alfa-setup.jar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If it works, I will make a release soon.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Flemming N. Larsen</dc:creator><pubDate>Mon, 23 Oct 2023 22:00:45 -0000</pubDate><guid>https://sourceforge.net45816ce3e7ecd6ad5a3d87eb181b8adf038c2981</guid></item><item><title>#37  Robot imported based on a jar file cannot run due to error: loader constraint violation</title><link>https://sourceforge.net/p/robocode/support-requests/37/?limit=25#375a/e4bf</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;For now, a temporary fix is to set the &lt;code&gt;-DNOSECURITY=true&lt;/code&gt; option on the command line. That is, put this line in the java command in the robocode.bat or robocode.sh file.&lt;br/&gt;
This disables the security manager and changes the way the classes are loaded.&lt;/p&gt;
&lt;p&gt;I still work on a real fix. But it is not an easy one, and could take some time.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Flemming N. Larsen</dc:creator><pubDate>Mon, 23 Oct 2023 10:04:09 -0000</pubDate><guid>https://sourceforge.netb19058303ef362b3359acb9a0fda2573216e7719</guid></item><item><title>#37  Robot imported based on a jar file cannot run due to error: loader constraint violation</title><link>https://sourceforge.net/p/robocode/support-requests/37/?limit=25#375a/1026/5b1b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a class="user-mention" href="/u/fnl/"&gt;@fnl&lt;/a&gt; Thanks you, looking forward your answer.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">darren</dc:creator><pubDate>Mon, 23 Oct 2023 01:37:00 -0000</pubDate><guid>https://sourceforge.net2ff0ccffa4519705170809cceab29fd4d3bc6a2d</guid></item><item><title>#37  Robot imported based on a jar file cannot run due to error: loader constraint violation</title><link>https://sourceforge.net/p/robocode/support-requests/37/?limit=25#375a/1026</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I can reproduce the problem, and trying to find a prober fix for it.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Flemming N. Larsen</dc:creator><pubDate>Sun, 22 Oct 2023 19:32:03 -0000</pubDate><guid>https://sourceforge.net28707d6be54cb9d2f9919f71e8c52c8141473007</guid></item><item><title>#37  Robot imported based on a jar file cannot run due to error: loader constraint violation</title><link>https://sourceforge.net/p/robocode/support-requests/37/?limit=25#375a/60e8</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;OK. I will have a look and see if I can reproduce it. And if so, I will figure out how it can be solved. 👍&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Flemming N. Larsen</dc:creator><pubDate>Sun, 22 Oct 2023 12:34:12 -0000</pubDate><guid>https://sourceforge.net94016be8f546b789b0430bb95427855124dd851c</guid></item><item><title>#37  Robot imported based on a jar file cannot run due to error: loader constraint violation</title><link>https://sourceforge.net/p/robocode/support-requests/37/?limit=25#375a</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi &lt;a class="user-mention" href="/u/fnl/"&gt;@fnl&lt;/a&gt;,  help!&lt;br/&gt;
The problem still there, could you help take a look.&lt;br/&gt;
voidious.Diamond 1.0: Throwable: java.lang.LinkageError: loader constraint violation: when resolving method "voidious.utils.MovementPredictor.nextLocation(Lvoidious/Diamond;)Ljava/awt/geom/Point2D$Double;" the class loader (instance of net/sf/robocode/host/security/RobotClassLoader) of the current class, voidious/radar/DiamondEyes, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for the method's defining class, voidious/utils/MovementPredictor, have different Class objects for the type voidious/Diamond used in the signature&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">darren</dc:creator><pubDate>Thu, 19 Oct 2023 09:32:04 -0000</pubDate><guid>https://sourceforge.netfb6d26e25c00c5fb04c9516c80c8b80f45d24d5a</guid></item><item><title>#37  Robot imported based on a jar file cannot run due to error: loader constraint violation</title><link>https://sourceforge.net/p/robocode/support-requests/37/?limit=25#beec/919f</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Flemming, &lt;br/&gt;
Yes I packed the jar file using "Robot/Package robot or team" menu.&lt;br/&gt;
OK, let me try with java 8, thanks!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">darren</dc:creator><pubDate>Thu, 19 Oct 2023 08:34:02 -0000</pubDate><guid>https://sourceforge.net9e8e243cb8647cdea1dd98edf28bd376f5f9caf9</guid></item><item><title>#37  Robot imported based on a jar file cannot run due to error: loader constraint violation</title><link>https://sourceforge.net/p/robocode/support-requests/37/?limit=25#beec</link><description>&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;Why there are two class loader for same class?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Robocode is using its own class loader due to security reasons as it needs to put security restrictions on robots running within the same JVM.&lt;/p&gt;
&lt;p&gt;Regarding the import error. Did you use the Robot/team packager of Robocode? f not, make sure to use it:&lt;/p&gt;
&lt;p&gt;Call the packager from the menu:&lt;br/&gt;
Robot -&amp;gt; Package robot or team&lt;/p&gt;
&lt;p&gt;If you did use the packager, I expect this to be a problem with never versions of Java making use of modules and putting more restrictions on Java Reflection. So you could try to run Robocode on an older version of Java e.g. version 8 or 11?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Flemming N. Larsen</dc:creator><pubDate>Thu, 19 Oct 2023 08:30:10 -0000</pubDate><guid>https://sourceforge.net33a6fbd548cfa8bfbb6c3e9bfdf0b0d804272de4</guid></item></channel></rss>