Re: Help please!

fnl <[email protected]> Tue, 6 Aug 2024 11:54:58 -0700 (PDT)
Newsgroups gmane.comp.java.robocode
Message-ID <[email protected]>
------=_Part_120342_443291475.1722970498640
Content-Type: multipart/alternative; 
	boundary="----=_Part_120343_751263627.1722970498640"

------=_Part_120343_751263627.1722970498640
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

It is a very cryptic message at first. It seems that the robot your are=20
trying to run has been compiled with Java class file version 65=20
<https://stackoverflow.com/questions/9170832/list-of-java-class-file-format=
-major-version-numbers> which=20
means *Java 21*.
But you are running the Robot on a Java version, the supports up to Java=20
class file version 52=20
<https://stackoverflow.com/questions/9170832/list-of-java-class-file-format=
-major-version-numbers>=20
which means up to *Java 8* (aka Java 1.8)

In short this means that you are probably running Robocode with Java 8 from=
=20
inside IntelliJ, which does not support Java 21, which is many versions=20
newer.
I recommend that you switch to a newer JDK (Java Developer Kit), which=20
should be *version 21* as minimum for running your robot.
You do this in IntelliJ from the menu: File -> Project Structure... ->=20
Platform Settings / SDKs. Then you should "Add New SDK" by pressing the=20
plus (+) symbol and select *Download SDK* and select version 21 (or newer)=
=20
and choose e.g. Oracle OpenJDK 21, or alternatively *Add SDK* if you=20
already have Java 21 or never installed somewhere on your system.

Alternatively, you can recompile your robot using an older Java version,=20
e.g. Java 11, which is the minimum requirement for running the newest=20
Robocode version.

I hope this helps? =F0=9F=99=82
tirsdag den 6. august 2024 kl. 20.37.25 UTC+2 skrev [email protected]:

> [image: Capture1.PNG]
> I've made my 1st robot in IntelliJ idea but when I open robocode, this=20
> error message is shown. How to fix it?

--=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/4fff9361-c0f7-4b78-a68a-ac1ee8c3bf02n%40googlegroups.com.

------=_Part_120343_751263627.1722970498640
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

It is a very cryptic message at first. It seems that the robot your are try=
ing to run has been compiled with <a href=3D"https://stackoverflow.com/ques=
tions/9170832/list-of-java-class-file-format-major-version-numbers">Java cl=
ass file version 65</a>=C2=A0which means <b>Java 21</b>.<div>But you are ru=
nning the Robot on a Java version, the supports up to <a href=3D"https://st=
ackoverflow.com/questions/9170832/list-of-java-class-file-format-major-vers=
ion-numbers">Java class file version 52</a> which means up to <b>Java 8</b>=
 (aka Java 1.8)<br /><br /></div><div>In short this means that you are prob=
ably running Robocode with Java 8 from inside IntelliJ, which does not supp=
ort Java 21, which is many versions newer.<br />I recommend that you switch=
 to a newer JDK (Java Developer Kit), which should be <b>version 21</b> as =
minimum for running your robot.<br />You do this in IntelliJ from the menu:=
 File -&gt; Project Structure... -&gt; Platform Settings / SDKs. Then you s=
hould "Add New SDK" by pressing the plus (+) symbol and select <b>Download =
SDK</b> and select version 21 (or newer) and choose e.g. Oracle OpenJDK 21,=
 or alternatively <b>Add SDK</b>=C2=A0if you already have Java 21 or never =
installed somewhere on your system.<br /><br />Alternatively, you can recom=
pile your robot using an older Java version, e.g. Java 11, which is the min=
imum requirement for running the newest Robocode version.<br /><br />I hope=
 this helps? =F0=9F=99=82</div><div class=3D"gmail_quote"><div dir=3D"auto"=
 class=3D"gmail_attr">tirsdag den 6. august 2024 kl. 20.37.25 UTC+2 skrev g=
[email protected]:<br/></div><blockquote class=3D"gmail_quote" style=3D"m=
argin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left=
: 1ex;"><img alt=3D"Capture1.PNG" width=3D"550px" height=3D"13px" src=3D"ht=
tps://groups.google.com/group/robocode/attach/3b7ab209c7115/Capture1.PNG?pa=
rt=3D0.1&amp;view=3D1"><br>I&#39;ve made my 1st robot in IntelliJ idea but =
when I open robocode, this error message is shown. How to fix it?</blockquo=
te></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;Robocode&quot; 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/4fff9361-c0f7-4b78-a68a-ac1ee8c3bf02n%40googlegroups.co=
m?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid=
/robocode/4fff9361-c0f7-4b78-a68a-ac1ee8c3bf02n%40googlegroups.com</a>.<br =
/>

------=_Part_120343_751263627.1722970498640--

------=_Part_120342_443291475.1722970498640--