Re: Robocode crashing at intialization
heromoga2000 <[email protected]> Fri, 4 Nov 2022 21:51:54 -0700 (PDT)
| Newsgroups | gmane.comp.java.robocode |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_4822_1916399146.1667623914742 Content-Type: multipart/alternative; boundary="----=_Part_4823_1410126036.1667623914742" ------=_Part_4823_1410126036.1667623914742 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable i tried all java version still have this issue. any solution On Thursday, October 6, 2022 at 6:21:24 AM UTC-7 fnl wrote: > Thank you for the follow-up. =F0=9F=99=82=F0=9F=91=8D > I will keep this in mind if we see this issue again, which is very likel= y. > > Cheers, > - Flemming > > mandag den 3. oktober 2022 kl. 22.38.57 UTC+2 skrev [email protected]: > >> Hello Flemming, >> >> Just had the same issue now on Ubuntu20.04 using jdk-17.0.4.1+1 from=20 >> https://adoptium.net/temurin/releases/ (amongst others). I am sill a bit= =20 >> confused between Gradle, Jetbrains and OS configuration of the JDKs,=20 >> however I thinks that is what I configured. In the end to get the test= =20 >> (mostly) running I had to use the VM option=20 >> "--add-opens=3Djava.base/java.util=3DALL-UNNAMED" as described in=20 >> https://github.com/junit-pioneer/junit-pioneer/issues/509. Although this= =20 >> has nothing to do with robocode, that helped. >> >> BR >> Alessandro >> fnl schrieb am Dienstag, 5. April 2022 um 20:00:32 UTC+2: >> >>> It seems to be a problem with the Java version. >>> I have tested Robocode against Java 17 with Eclipse Adoptium (Temurin)= =20 >>> on Windows 11, where it seems to run. >>> >>> I suggest you try to use an older Java version when running Robocode,= =20 >>> e.g. version 11. >>> >>> Which version of Java are you running? You can find out by writting thi= s=20 >>> 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=20 >>>> Robocode for a college assignment. I did a basic program in eclipse, a= nd=20 >>>> set Robocode to initialize from there. Robocode starts up and then cra= shes.=20 >>>> 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= =20 >>>> called >>>> WARNING: System::setSecurityManager has been called by=20 >>>> net.sf.robocode.host.security.RobocodeSecurityManager=20 >>>> (file:/C:/robocode/libs/robocode.host-1.9.4.5.jar) >>>> WARNING: Please consider reporting this to the maintainers of=20 >>>> net.sf.robocode.host.security.RobocodeSecurityManager >>>> WARNING: System::setSecurityManager will be removed in a future releas= e >>>> java.lang.ExceptionInInitializerError >>>> at=20 >>>> net.sf.robocode.repository.RepositoryManager.reload(RepositoryManager.= java:164) >>>> at=20 >>>> net.sf.robocode.ui.WindowManager.showSplashScreen(WindowManager.java:3= 58) >>>> 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=20 >>>> make field private static final java.util.HashMap=20 >>>> sun.net.www.protocol.jar.JarFileFactory.fileCache accessible: module= =20 >>>> java.base does not "opens sun.net.www.protocol.jar" to unnamed module= =20 >>>> @529abded >>>> at=20 >>>> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Acc= essibleObject.java:354) >>>> at=20 >>>> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Acc= essibleObject.java:297) >>>> at=20 >>>> java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178= ) >>>> at java.base/java.lang.reflect.Field.setAccessible(Field.java:172) >>>> at=20 >>>> net.sf.robocode.io.URLJarCollector.<clinit>(URLJarCollector.java:48) >>>> ... 4 more >>>> >>>> java.lang.ExceptionInInitializerError >>>> at=20 >>>> net.sf.robocode.repository.RepositoryManager.reload(RepositoryManager.= java:164) >>>> at=20 >>>> net.sf.robocode.ui.WindowManager.showSplashScreen(WindowManager.java:3= 58) >>>> 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=20 >>>> make field private static final java.util.HashMap=20 >>>> sun.net.www.protocol.jar.JarFileFactory.fileCache accessible: module= =20 >>>> java.base does not "opens sun.net.www.protocol.jar" to unnamed module= =20 >>>> @529abded >>>> at=20 >>>> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Acc= essibleObject.java:354) >>>> at=20 >>>> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Acc= essibleObject.java:297) >>>> at=20 >>>> java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178= ) >>>> at java.base/java.lang.reflect.Field.setAccessible(Field.java:172) >>>> at=20 >>>> net.sf.robocode.io.URLJarCollector.<clinit>(URLJarCollector.java:48) >>>> ... 4 more >>>> >>>> --=20 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 e= mail to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/= robocode/2ad40adc-1309-4a1c-b34b-d4107077b771n%40googlegroups.com. ------=_Part_4823_1410126036.1667623914742 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable i tried all java version still have this issue. any solution<br><br><div cl= ass=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_attr">On Thursday, Oct= ober 6, 2022 at 6:21:24 AM UTC-7 fnl wrote:<br/></div><blockquote class=3D"= gmail_quote" style=3D"margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, = 204, 204); padding-left: 1ex;">Thank you for the follow-up. =F0=9F=99=82=F0= =9F=91=8D<div>=C2=A0I will keep this in mind if we see this issue again, wh= ich is very likely.</div><div><br></div><div>Cheers,<br></div><div>- Flemmi= ng</div><div><br></div><div class=3D"gmail_quote"><div dir=3D"auto" class= =3D"gmail_attr">mandag den 3. oktober 2022 kl. 22.38.57 UTC+2 skrev <a href= data-email-masked rel=3D"nofollow">[email protected]</a>:<br></div><block= quote class=3D"gmail_quote" style=3D"margin:0 0 0 0.8ex;border-left:1px sol= id rgb(204,204,204);padding-left:1ex"><div>Hello Flemming,</div><div><br></= div><div>Just had the same issue now on Ubuntu20.04 using jdk-17.0.4.1+1 fr= om <a href=3D"https://adoptium.net/temurin/releases/" rel=3D"nofollow" targ= et=3D"_blank" data-saferedirecturl=3D"https://www.google.com/url?hl=3Den&am= p;q=3Dhttps://adoptium.net/temurin/releases/&source=3Dgmail&ust=3D1= 667710256274000&usg=3DAOvVaw0IQ4RByottcONAKHKop2HG">https://adoptium.ne= t/temurin/releases/</a> (amongst others). I am sill a bit confused between = Gradle, Jetbrains and OS configuration of the JDKs, however I thinks that i= s what I configured. In the end to get the test (mostly) running I had to <= span>use the VM option "--add-opens=3Djava.base/java.util=3DALL-UNNAME= D" as described in <a href=3D"https://github.com/junit-pioneer/junit-p= ioneer/issues/509" rel=3D"nofollow" target=3D"_blank" data-saferedirecturl= =3D"https://www.google.com/url?hl=3Den&q=3Dhttps://github.com/junit-pio= neer/junit-pioneer/issues/509&source=3Dgmail&ust=3D1667710256274000= &usg=3DAOvVaw01WBDOWiXys_a89rqCjaL6">https://github.com/junit-pioneer/j= unit-pioneer/issues/509</a>. Although this has nothing to do with robocode,= that helped.<br></span></div><div><span><br></span></div><div><span>BR<br>= </span></div>Alessandro<br><div class=3D"gmail_quote"><div dir=3D"auto" cla= ss=3D"gmail_attr">fnl schrieb am Dienstag, 5. April 2022 um 20:00:32 UTC+2:= <br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 0.8ex;bor= der-left:1px solid rgb(204,204,204);padding-left:1ex"><p>It seems to be a p= roblem with the Java version.<br>I have tested Robocode against Java 17 wit= h Eclipse Adoptium=C2=A0(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 running? You can find o= ut by writting this command from the command line:</p><p>java -version</p><= p>Best regards,</p><p>- Flemming</p><div class=3D"gmail_quote"><div dir=3D"= auto" class=3D"gmail_attr">tirsdag den 5. april 2022 kl. 19.58.02 UTC+2 skr= ev John Davis:<br></div><blockquote class=3D"gmail_quote" 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, an= d set Robocode to initialize from there. Robocode starts up and then crashe= s. Has anyone every seen this? Please Please Help....Thanks</div><div><br><= /div><div>See the fault below from the console.....<br></div><div><br></div= >Loaded net.sf.robocode.api<br>Loaded net.sf.robocode.core<br>Loading plugi= ns from C:\robocode\libs<br>Loaded net.sf.robocode.battle<br>Loaded net.sf.= robocode.host<br>Loaded net.sf.robocode.repository<br>Loaded net.sf.robocod= e.sound<br>Loaded net.sf.robocode.ui<br>Loaded net.sf.robocode.ui.editor<br= >No robocode.properties. Using defaults.<br>No robocode.properties. Using d= efaults.<br>WARNING: A terminally deprecated method in java.lang.System has= been called<br>WARNING: System::setSecurityManager has been called by net.= sf.robocode.host.security.RobocodeSecurityManager (file:/C:/robocode/libs/r= obocode.host-1.9.4.5.jar)<br>WARNING: Please consider reporting this to the= maintainers of net.sf.robocode.host.security.RobocodeSecurityManager<br>WA= RNING: System::setSecurityManager will be removed in a future release<br>ja= va.lang.ExceptionInInitializerError<br>=C2=A0 =C2=A0 at net.sf.robocode.rep= ository.RepositoryManager.reload(RepositoryManager.java:164)<br>=C2=A0 =C2= =A0 at net.sf.robocode.ui.WindowManager.showSplashScreen(WindowManager.java= :358)<br>=C2=A0 =C2=A0 at net.sf.robocode.core.RobocodeMain.run(RobocodeMai= n.java:124)<br>=C2=A0 =C2=A0 at java.base/java.lang.Thread.run(Thread.java:= 833)<br>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<br>=C2=A0 =C2= =A0 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(A= ccessibleObject.java:354)<br>=C2=A0 =C2=A0 at java.base/java.lang.reflect.A= ccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)<br>=C2=A0 = =C2=A0 at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.jav= a:178)<br>=C2=A0 =C2=A0 at java.base/java.lang.reflect.Field.setAccessible(= Field.java:172)<br>=C2=A0 =C2=A0 at net.sf.robocode.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.repos= itory.RepositoryManager.reload(RepositoryManager.java:164)<br>=C2=A0 =C2=A0= at net.sf.robocode.ui.WindowManager.showSplashScreen(WindowManager.java:35= 8)<br>=C2=A0 =C2=A0 at net.sf.robocode.core.RobocodeMain.run(RobocodeMain.j= ava:124)<br>=C2=A0 =C2=A0 at java.base/java.lang.Thread.run(Thread.java:833= )<br>Caused by: java.lang.reflect.InaccessibleObjectException: Unable to ma= ke field private static final java.util.HashMap sun.net.www.protocol.jar.Ja= rFileFactory.fileCache accessible: module java.base does not "opens su= n.net.www.protocol.jar" to unnamed module @529abded<br>=C2=A0 =C2=A0 a= t java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Access= ibleObject.java:354)<br>=C2=A0 =C2=A0 at java.base/java.lang.reflect.Access= ibleObject.checkCanSetAccessible(AccessibleObject.java:297)<br>=C2=A0 =C2= =A0 at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:1= 78)<br>=C2=A0 =C2=A0 at java.base/java.lang.reflect.Field.setAccessible(Fie= ld.java:172)<br>=C2=A0 =C2=A0 at net.sf.robocode.io.URLJarCollector.<cli= nit>(URLJarCollector.java:48)<br>=C2=A0 =C2=A0 ... 4 more<br><br></block= quote></div></blockquote></div></blockquote></div></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/2ad40adc-1309-4a1c-b34b-d4107077b771n%40googlegroups.co= m?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid= /robocode/2ad40adc-1309-4a1c-b34b-d4107077b771n%40googlegroups.com</a>.<br = /> ------=_Part_4823_1410126036.1667623914742-- ------=_Part_4822_1916399146.1667623914742--