Re: Robocode crashing at intialization
heromoga2000 <[email protected]> Fri, 4 Nov 2022 21:50:14 -0700 (PDT)
| Newsgroups | gmane.comp.java.robocode |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_1614_801253316.1667623814349 Content-Type: multipart/alternative; boundary="----=_Part_1615_785746402.1667623814349" ------=_Part_1615_785746402.1667623814349 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable please i 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/53a35c72-9892-4ecc-a1e1-1a1bdb979deen%40googlegroups.com. ------=_Part_1615_785746402.1667623814349 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable please i have this issue any solution ????<br><br><div class=3D"gmail_quote= "><div dir=3D"auto" class=3D"gmail_attr">On Thursday, October 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, which is very likel= y.</div><div><br></div><div>Cheers,<br></div><div>- Flemming</div><div><br>= </div><div class=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_attr">man= dag den 3. oktober 2022 kl. 22.38.57 UTC+2 skrev <a href data-email-masked = rel=3D"nofollow">[email protected]</a>:<br></div><blockquote class=3D"gmai= l_quote" style=3D"margin:0 0 0 0.8ex;border-left:1px solid rgb(204,204,204)= ;padding-left:1ex"><div>Hello Flemming,</div><div><br></div><div>Just had t= he same issue now on Ubuntu20.04 using jdk-17.0.4.1+1 from <a href=3D"https= ://adoptium.net/temurin/releases/" rel=3D"nofollow" target=3D"_blank" data-= saferedirecturl=3D"https://www.google.com/url?hl=3Den&q=3Dhttps://adopt= ium.net/temurin/releases/&source=3Dgmail&ust=3D1667710169523000&= ;usg=3DAOvVaw0s_x9gaBpgGntbhng9Zjf3">https://adoptium.net/temurin/releases/= </a> (amongst others). I am sill a bit confused between Gradle, Jetbrains a= nd OS configuration of the JDKs, however I thinks that is what I configured= . In the end to get the test (mostly) running I had to <span>use the VM opt= ion "--add-opens=3Djava.base/java.util=3DALL-UNNAMED" as describe= d in <a href=3D"https://github.com/junit-pioneer/junit-pioneer/issues/509" = rel=3D"nofollow" target=3D"_blank" data-saferedirecturl=3D"https://www.goog= le.com/url?hl=3Den&q=3Dhttps://github.com/junit-pioneer/junit-pioneer/i= ssues/509&source=3Dgmail&ust=3D1667710169523000&usg=3DAOvVaw2Wa= LawMC2Gi054F_Rbkm7y">https://github.com/junit-pioneer/junit-pioneer/issues/= 509</a>. Although this has nothing to do with robocode, that helped.<br></s= pan></div><div><span><br></span></div><div><span>BR<br></span></div>Alessan= dro<br><div class=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_attr">fn= l schrieb am Dienstag, 5. April 2022 um 20:00:32 UTC+2:<br></div><blockquot= e class=3D"gmail_quote" style=3D"margin:0 0 0 0.8ex;border-left:1px solid r= gb(204,204,204);padding-left:1ex"><p>It seems to be a problem with the Java= version.<br>I have tested Robocode against Java 17 with Eclipse Adoptium= =C2=A0(Temurin) on Windows 11, where it seems to run.</p><p>I suggest you t= ry 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 out by writting thi= s 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"gma= il_attr">tirsdag den 5. april 2022 kl. 19.58.02 UTC+2 skrev 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 any= one 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 ever= y 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.rob= ocode.api<br>Loaded net.sf.robocode.core<br>Loading plugins from C:\robocod= e\libs<br>Loaded net.sf.robocode.battle<br>Loaded net.sf.robocode.host<br>L= oaded net.sf.robocode.repository<br>Loaded net.sf.robocode.sound<br>Loaded = net.sf.robocode.ui<br>Loaded net.sf.robocode.ui.editor<br>No robocode.prope= rties. Using defaults.<br>No robocode.properties. Using defaults.<br>WARNIN= G: A terminally deprecated method in java.lang.System has been called<br>WA= RNING: System::setSecurityManager has been called by net.sf.robocode.host.s= ecurity.RobocodeSecurityManager (file:/C:/robocode/libs/robocode.host-1.9.4= .5.jar)<br>WARNING: Please consider reporting this to the maintainers of ne= t.sf.robocode.host.security.RobocodeSecurityManager<br>WARNING: System::set= SecurityManager will be removed in a future release<br>java.lang.ExceptionI= nInitializerError<br>=C2=A0 =C2=A0 at net.sf.robocode.repository.Repository= Manager.reload(RepositoryManager.java:164)<br>=C2=A0 =C2=A0 at net.sf.roboc= ode.ui.WindowManager.showSplashScreen(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.InaccessibleObjectException: Unable to make field privat= e static final java.util.HashMap sun.net.www.protocol.jar.JarFileFactory.fi= leCache accessible: module java.base does not "opens sun.net.www.proto= col.jar" to unnamed module @529abded<br>=C2=A0 =C2=A0 at java.base/jav= a.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java= :354)<br>=C2=A0 =C2=A0 at java.base/java.lang.reflect.AccessibleObject.chec= kCanSetAccessible(AccessibleObject.java:297)<br>=C2=A0 =C2=A0 at java.base/= java.lang.reflect.Field.checkCanSetAccessible(Field.java: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>(URLJarCo= llector.java:48)<br>=C2=A0 =C2=A0 ... 4 more<br><br>java.lang.ExceptionInIn= itializerError<br>=C2=A0 =C2=A0 at net.sf.robocode.repository.RepositoryMan= ager.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(RobocodeMain.java:124)<br>=C2=A0 = =C2=A0 at java.base/java.lang.Thread.run(Thread.java:833)<br>Caused by: jav= a.lang.reflect.InaccessibleObjectException: Unable to make field private st= atic final java.util.HashMap sun.net.www.protocol.jar.JarFileFactory.fileCa= che 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.la= ng.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354= )<br>=C2=A0 =C2=A0 at java.base/java.lang.reflect.AccessibleObject.checkCan= SetAccessible(AccessibleObject.java:297)<br>=C2=A0 =C2=A0 at java.base/java= .lang.reflect.Field.checkCanSetAccessible(Field.java: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>(URLJarColle= ctor.java:48)<br>=C2=A0 =C2=A0 ... 4 more<br><br></blockquote></div></block= quote></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/53a35c72-9892-4ecc-a1e1-1a1bdb979deen%40googlegroups.co= m?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid= /robocode/53a35c72-9892-4ecc-a1e1-1a1bdb979deen%40googlegroups.com</a>.<br = /> ------=_Part_1615_785746402.1667623814349-- ------=_Part_1614_801253316.1667623814349--