Robocode crashing at intialization
John Davis <[email protected]> Tue, 5 Apr 2022 03:08:11 -0700 (PDT)
| Newsgroups | gmane.comp.java.robocode |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_704_120661479.1649153291677
Content-Type: multipart/alternative;
boundary="----=_Part_705_1620900607.1649153291677"
------=_Part_705_1620900607.1649153291677
Content-Type: text/plain; charset="UTF-8"
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/8bcc66fd-15d7-4e1b-8c96-fc9987cf7da4n%40googlegroups.com.
------=_Part_705_1620900607.1649153291677
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div>Hi</div><div>can anyone help me please? I'm trying to setup a basic ro=
bot 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 cra=
shes. Has anyone every seen this? Please Please Help....Thanks</div><div><b=
r></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 pl=
ugins 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.robo=
code.sound<br>Loaded net.sf.robocode.ui<br>Loaded net.sf.robocode.ui.editor=
<br>No robocode.properties. Using defaults.<br>No robocode.properties. Usin=
g defaults.<br>WARNING: A terminally deprecated method in java.lang.System =
has been called<br>WARNING: System::setSecurityManager has been called by n=
et.sf.robocode.host.security.RobocodeSecurityManager (file:/C:/robocode/lib=
s/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 removed in a future release<br=
>java.lang.ExceptionInInitializerError<br> at net.sf.robocode.=
repository.RepositoryManager.reload(RepositoryManager.java:164)<br> &=
nbsp; at net.sf.robocode.ui.WindowManager.showSplashScreen(WindowManager.ja=
va:358)<br> at net.sf.robocode.core.RobocodeMain.run(RobocodeM=
ain.java:124)<br> at java.base/java.lang.Thread.run(Thread.jav=
a:833)<br>Caused by: java.lang.reflect.InaccessibleObjectException: Unable =
to make field private static final java.util.HashMap sun.net.www.protocol.j=
ar.JarFileFactory.fileCache accessible: module java.base does not "opens su=
n.net.www.protocol.jar" to unnamed module @529abded<br> at jav=
a.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleO=
bject.java:354)<br> at java.base/java.lang.reflect.AccessibleO=
bject.checkCanSetAccessible(AccessibleObject.java:297)<br> at =
java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)<br>=
at java.base/java.lang.reflect.Field.setAccessible(Field.java=
:172)<br> at net.sf.robocode.io.URLJarCollector.<clinit>=
(URLJarCollector.java:48)<br> ... 4 more<br><br>java.lang.Exce=
ptionInInitializerError<br> at net.sf.robocode.repository.Repo=
sitoryManager.reload(RepositoryManager.java:164)<br> at net.sf=
.robocode.ui.WindowManager.showSplashScreen(WindowManager.java:358)<br>&nbs=
p; at net.sf.robocode.core.RobocodeMain.run(RobocodeMain.java:124)<b=
r> at java.base/java.lang.Thread.run(Thread.java:833)<br>Cause=
d by: java.lang.reflect.InaccessibleObjectException: Unable to make field p=
rivate static final java.util.HashMap sun.net.www.protocol.jar.JarFileFacto=
ry.fileCache accessible: module java.base does not "opens sun.net.www.proto=
col.jar" to unnamed module @529abded<br> at java.base/java.lan=
g.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)=
<br> at java.base/java.lang.reflect.AccessibleObject.checkCanS=
etAccessible(AccessibleObject.java:297)<br> at java.base/java.=
lang.reflect.Field.checkCanSetAccessible(Field.java:178)<br> a=
t java.base/java.lang.reflect.Field.setAccessible(Field.java:172)<br> =
at net.sf.robocode.io.URLJarCollector.<clinit>(URLJarCollecto=
r.java:48)<br> ... 4 more<br><br>
<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/8bcc66fd-15d7-4e1b-8c96-fc9987cf7da4n%40googlegroups.co=
m?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid=
/robocode/8bcc66fd-15d7-4e1b-8c96-fc9987cf7da4n%40googlegroups.com</a>.<br =
/>
------=_Part_705_1620900607.1649153291677--
------=_Part_704_120661479.1649153291677--