Re: Robocode crashing at intialization
fnl <[email protected]> Tue, 5 Apr 2022 11:00:32 -0700 (PDT)
| Newsgroups | gmane.comp.java.robocode |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_160_1803482562.1649181632066 Content-Type: multipart/alternative; boundary="----=_Part_161_1963271371.1649181632066" ------=_Part_161_1963271371.1649181632066 Content-Type: text/plain; charset="UTF-8" It seems to be a problem with the Java version. I have tested Robocode against Java 17 with Eclipse Adoptium (Temurin) on Windows 11, where it seems to run. I suggest you try to use an older Java version when running Robocode, e.g. version 11. Which version of Java are you running? You can find out by writting this command from the command line: java -version Best regards, - Flemming tirsdag den 5. april 2022 kl. 19.58.02 UTC+2 skrev John Davis: > Hi > can anyone help me please? I'm trying to setup a basic robot in Robocode > for a college assignment. I did a basic program in eclipse, and set > Robocode to initialize from there. Robocode starts up and then crashes. Has > anyone every seen this? Please Please Help....Thanks > > See the fault below from the console..... > > Loaded net.sf.robocode.api > Loaded net.sf.robocode.core > Loading plugins from C:\robocode\libs > Loaded net.sf.robocode.battle > Loaded net.sf.robocode.host > Loaded net.sf.robocode.repository > Loaded net.sf.robocode.sound > Loaded net.sf.robocode.ui > Loaded net.sf.robocode.ui.editor > No robocode.properties. Using defaults. > No robocode.properties. Using defaults. > WARNING: A terminally deprecated method in java.lang.System has been called > WARNING: System::setSecurityManager has been called by > net.sf.robocode.host.security.RobocodeSecurityManager > (file:/C:/robocode/libs/robocode.host-1.9.4.5.jar) > WARNING: Please consider reporting this to the maintainers of > net.sf.robocode.host.security.RobocodeSecurityManager > WARNING: System::setSecurityManager will be removed in a future release > java.lang.ExceptionInInitializerError > at > net.sf.robocode.repository.RepositoryManager.reload(RepositoryManager.java:164) > at > net.sf.robocode.ui.WindowManager.showSplashScreen(WindowManager.java:358) > at net.sf.robocode.core.RobocodeMain.run(RobocodeMain.java:124) > at java.base/java.lang.Thread.run(Thread.java:833) > Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make > field private static final java.util.HashMap > sun.net.www.protocol.jar.JarFileFactory.fileCache accessible: module > java.base does not "opens sun.net.www.protocol.jar" to unnamed module > @529abded > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) > at > java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178) > at java.base/java.lang.reflect.Field.setAccessible(Field.java:172) > at net.sf.robocode.io.URLJarCollector.<clinit>(URLJarCollector.java:48) > ... 4 more > > java.lang.ExceptionInInitializerError > at > net.sf.robocode.repository.RepositoryManager.reload(RepositoryManager.java:164) > at > net.sf.robocode.ui.WindowManager.showSplashScreen(WindowManager.java:358) > at net.sf.robocode.core.RobocodeMain.run(RobocodeMain.java:124) > at java.base/java.lang.Thread.run(Thread.java:833) > Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make > field private static final java.util.HashMap > sun.net.www.protocol.jar.JarFileFactory.fileCache accessible: module > java.base does not "opens sun.net.www.protocol.jar" to unnamed module > @529abded > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) > at > java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178) > at java.base/java.lang.reflect.Field.setAccessible(Field.java:172) > at net.sf.robocode.io.URLJarCollector.<clinit>(URLJarCollector.java:48) > ... 4 more > > -- You received this message because you are subscribed to the Google Groups "Robocode" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/robocode/a9424839-b642-4b84-bcdb-f264fbffa800n%40googlegroups.com. ------=_Part_161_1963271371.1649181632066 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <p>It seems to be a problem with the Java version.<br>I have tested Robocod= e against Java 17 with Eclipse Adoptium (Temurin) on Windows 11, where= it seems to run.</p><p>I suggest you try to use an older Java version when= running Robocode, e.g. version 11.<br><br>Which version of Java are you ru= nning? You can find out by writting this command from the command line:</p>= <p>java -version</p><p>Best regards,</p><p>- Flemming</p><div class=3D"gmai= l_quote"><div dir=3D"auto" class=3D"gmail_attr">tirsdag den 5. april 2022 k= l. 19.58.02 UTC+2 skrev John Davis:<br/></div><blockquote class=3D"gmail_qu= ote" style=3D"margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204= ); padding-left: 1ex;"><div>Hi</div><div>can anyone help me please? I'm= trying to setup a basic robot in Robocode for a college assignment. I did = a basic program in eclipse, and set Robocode to initialize from there. Robo= code starts up and then crashes. Has anyone every seen this? Please Please = Help....Thanks</div><div><br></div><div>See the fault below from the consol= e.....<br></div><div><br></div>Loaded net.sf.robocode.api<br>Loaded net.sf.= robocode.core<br>Loading plugins from C:\robocode\libs<br>Loaded net.sf.rob= ocode.battle<br>Loaded net.sf.robocode.host<br>Loaded net.sf.robocode.repos= itory<br>Loaded net.sf.robocode.sound<br>Loaded net.sf.robocode.ui<br>Loade= d net.sf.robocode.ui.editor<br>No robocode.properties. Using defaults.<br>N= o robocode.properties. Using defaults.<br>WARNING: A terminally deprecated = method in java.lang.System has been called<br>WARNING: System::setSecurityM= anager has been called by net.sf.robocode.host.security.RobocodeSecurityMan= ager (file:/C:/robocode/libs/robocode.host-1.9.4.5.jar)<br>WARNING: Please = consider reporting this to the maintainers of net.sf.robocode.host.security= .RobocodeSecurityManager<br>WARNING: System::setSecurityManager will be rem= oved in a future release<br>java.lang.ExceptionInInitializerError<br>=C2=A0= =C2=A0 at net.sf.robocode.repository.RepositoryManager.reload(RepositoryMa= nager.java:164)<br>=C2=A0 =C2=A0 at net.sf.robocode.ui.WindowManager.showSp= lashScreen(WindowManager.java:358)<br>=C2=A0 =C2=A0 at net.sf.robocode.core= .RobocodeMain.run(RobocodeMain.java:124)<br>=C2=A0 =C2=A0 at java.base/java= .lang.Thread.run(Thread.java:833)<br>Caused by: java.lang.reflect.Inaccessi= bleObjectException: Unable to make field private static final java.util.Has= hMap sun.net.www.protocol.jar.JarFileFactory.fileCache accessible: module j= ava.base does not "opens sun.net.www.protocol.jar" to unnamed mod= ule @529abded<br>=C2=A0 =C2=A0 at java.base/java.lang.reflect.AccessibleObj= ect.checkCanSetAccessible(AccessibleObject.java:354)<br>=C2=A0 =C2=A0 at ja= va.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Accessible= Object.java:297)<br>=C2=A0 =C2=A0 at java.base/java.lang.reflect.Field.chec= kCanSetAccessible(Field.java:178)<br>=C2=A0 =C2=A0 at java.base/java.lang.r= eflect.Field.setAccessible(Field.java:172)<br>=C2=A0 =C2=A0 at net.sf.roboc= ode.io.URLJarCollector.<clinit>(URLJarCollector.java:48)<br>=C2=A0 = =C2=A0 ... 4 more<br><br>java.lang.ExceptionInInitializerError<br>=C2=A0 = =C2=A0 at net.sf.robocode.repository.RepositoryManager.reload(RepositoryMan= ager.java:164)<br>=C2=A0 =C2=A0 at net.sf.robocode.ui.WindowManager.showSpl= ashScreen(WindowManager.java:358)<br>=C2=A0 =C2=A0 at net.sf.robocode.core.= RobocodeMain.run(RobocodeMain.java:124)<br>=C2=A0 =C2=A0 at java.base/java.= lang.Thread.run(Thread.java:833)<br>Caused by: java.lang.reflect.Inaccessib= leObjectException: Unable to make field private static final java.util.Hash= Map sun.net.www.protocol.jar.JarFileFactory.fileCache accessible: module ja= va.base does not "opens sun.net.www.protocol.jar" to unnamed modu= le @529abded<br>=C2=A0 =C2=A0 at java.base/java.lang.reflect.AccessibleObje= ct.checkCanSetAccessible(AccessibleObject.java:354)<br>=C2=A0 =C2=A0 at jav= a.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleO= bject.java:297)<br>=C2=A0 =C2=A0 at java.base/java.lang.reflect.Field.check= CanSetAccessible(Field.java:178)<br>=C2=A0 =C2=A0 at java.base/java.lang.re= flect.Field.setAccessible(Field.java:172)<br>=C2=A0 =C2=A0 at net.sf.roboco= de.io.URLJarCollector.<clinit>(URLJarCollector.java:48)<br>=C2=A0 =C2= =A0 ... 4 more<br><br></blockquote></div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;Robocode" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]">robocode+u= [email protected]</a>.<br /> To view this discussion on the web visit <a href=3D"https://groups.google.c= om/d/msgid/robocode/a9424839-b642-4b84-bcdb-f264fbffa800n%40googlegroups.co= m?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid= /robocode/a9424839-b642-4b84-bcdb-f264fbffa800n%40googlegroups.com</a>.<br = /> ------=_Part_161_1963271371.1649181632066-- ------=_Part_160_1803482562.1649181632066--