Menu

Compiler Failed - Picked up _JAVA_OPTIONS: "-Djava.security.manager=allow"

Help
P H
2024-11-18
2024-11-20
  • P H

    P H - 2024-11-18

    I installed Robocode on the 24 computers in my classroom. 22 computers compile bots successfuly, but 2 of the computers get the error in the attached image:

    Picked up _JAVA_OPTIONS: "-Djava.security.manager=allow"
    source level should be in '1.8,'9'...'22' (or '8.0'..'22.0'): 1.5
    Compile Failed (-1)

    What is this issue? It is odd that only 2 of the computers have this. I am not super technical/a Java expert, so please keep the issue/solution explanation simple!

    The computers are running JDK 22.

    Thank you!

     
  • Flemming N. Larsen

    Looking at this line:
    source level should be in '1.8,'9'...'22' (or '8.0'..'22.0'): 1.5

    It looks like the Java runtime is version 1.5 (Java 5.0). Robocode writes the Java version in the end of the line after the colon.

    Try to run this command from the same terminal running Java to see the version on the two computer that have the problem:

    java -version
    

    If the computers are running Windows, the issue can be "hidden" under the PATH environment variable for the System variables, which Microsoft tends to use for installing Java.

     

    Last edit: Flemming N. Larsen 2024-11-19
  • P H

    P H - 2024-11-20

    Hi, thank you for your quick response.

    We resolved the issue...

    java -version does return version 22...

    So we chose to use the compiler built into Robocode and under
    Compiler Preferences > Compiler Options it says "-source 1.5 -verbose -encoding UTF -8".

    So I just reset to compiler on the affected computers and chose the compiler already on the system instead and it works just fine. I have no idea why only 3 computers would have this issue.

    Hopefully this can help some poeple with the same issue in the future.

    Thank you again!

     
  • Flemming N. Larsen

    I am happy to hear that the problem with solved just be using the built-in compiler (Eclipse Compiler for Java). 😊

    The 3 computers must have an very old version of Java 5.0 installed somewhere in the system.

     

Log in to post a comment.

MongoDB Logo MongoDB