Re: Help please!
Farhan Sadique <[email protected]> Wed, 7 Aug 2024 05:11:48 -0700 (PDT)
| Newsgroups | gmane.comp.java.robocode |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_45436_754387775.1723032708593 Content-Type: multipart/alternative; boundary="----=_Part_45437_277492958.1723032708593" ------=_Part_45437_277492958.1723032708593 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I've recompiled using Java 11 as you mentioned.Now the robot is shown with= =20 the package name in the robot list.But after selecting it,when I start the= =20 battle,my robot is not shown in game. On Wednesday, August 7, 2024 at 12:54:58=E2=80=AFAM UTC+6 fnl wrote: > 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-form= at-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-form= at-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=20 > from inside IntelliJ, which does not support Java 21, which is many=20 > versions 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=20 > newer) and choose e.g. Oracle OpenJDK 21, or alternatively *Add SDK* if= =20 > you 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/dec396af-2d9a-473b-b01c-fe545245a3b3n%40googlegroups.com. ------=_Part_45437_277492958.1723032708593 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I've recompiled using Java 11 as you mentioned.Now the robot is shown with = the package name in the robot list.But after selecting it,when I start the = battle,my robot is not shown in game.<br /><br /><div class=3D"gmail_quote"= ><div dir=3D"auto" class=3D"gmail_attr">On Wednesday, August 7, 2024 at 12:= 54:58=E2=80=AFAM UTC+6 fnl wrote:<br/></div><blockquote class=3D"gmail_quot= e" style=3D"margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204);= padding-left: 1ex;">It is a very cryptic message at first. It seems that t= he robot your are trying to run has been compiled with <a href=3D"https://s= tackoverflow.com/questions/9170832/list-of-java-class-file-format-major-ver= sion-numbers" target=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"ht= tps://www.google.com/url?hl=3Den&q=3Dhttps://stackoverflow.com/question= s/9170832/list-of-java-class-file-format-major-version-numbers&source= =3Dgmail&ust=3D1723118921582000&usg=3DAOvVaw0l_yXK-uFn7QOshcsvDQlM"= >Java class file version 65</a>=C2=A0which means <b>Java 21</b>.<div>But yo= u are running the Robot on a Java version, the supports up to <a href=3D"ht= tps://stackoverflow.com/questions/9170832/list-of-java-class-file-format-ma= jor-version-numbers" target=3D"_blank" rel=3D"nofollow" data-saferedirectur= l=3D"https://www.google.com/url?hl=3Den&q=3Dhttps://stackoverflow.com/q= uestions/9170832/list-of-java-class-file-format-major-version-numbers&s= ource=3Dgmail&ust=3D1723118921582000&usg=3DAOvVaw0l_yXK-uFn7QOshcsv= DQlM">Java class file version 52</a> which means up to <b>Java 8</b> (aka J= ava 1.8)<br><br></div><div>In short this means that you are probably runnin= g Robocode with Java 8 from inside IntelliJ, which does not support Java 21= , which is many versions newer.<br>I recommend that you switch to a newer J= DK (Java Developer Kit), which should be <b>version 21</b> as minimum for r= unning your robot.<br>You do this in IntelliJ from the menu: File -> Pro= ject Structure... -> Platform Settings / SDKs. Then you should "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 a= lternatively <b>Add SDK</b>=C2=A0if you already have Java 21 or never insta= lled somewhere on your system.<br><br>Alternatively, you can recompile your= robot using an older Java version, e.g. Java 11, which is the minimum requ= irement 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"gma= il_attr">tirsdag den 6. august 2024 kl. 20.37.25 UTC+2 skrev <a href data-e= mail-masked rel=3D"nofollow">[email protected]</a>:<br></div><blockquote= class=3D"gmail_quote" style=3D"margin:0 0 0 0.8ex;border-left:1px solid rg= b(204,204,204);padding-left:1ex"><img alt=3D"Capture1.PNG" width=3D"550px" = height=3D"13px" src=3D"https://groups.google.com/group/robocode/attach/3b7a= b209c7115/Capture1.PNG?part=3D0.1&view=3D1"><br>I've made my 1st ro= bot in IntelliJ idea but when I open robocode, this error message is shown.= How to fix it?</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/dec396af-2d9a-473b-b01c-fe545245a3b3n%40googlegroups.co= m?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid= /robocode/dec396af-2d9a-473b-b01c-fe545245a3b3n%40googlegroups.com</a>.<br = /> ------=_Part_45437_277492958.1723032708593-- ------=_Part_45436_754387775.1723032708593--