Skip to content

Commit

Permalink
Added uncommented version for running Robocode in script files for Ja…
Browse files Browse the repository at this point in the history
…va versions older than major version 12.
  • Loading branch information
flemming-n-larsen committed Jun 15, 2022
1 parent 440ce2f commit 1fd605c
Show file tree
Hide file tree
Showing 15 changed files with 60 additions and 0 deletions.
4 changes: 4 additions & 0 deletions robocode.content/src/main/resources/meleerumble.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@
@REM https://robocode.sourceforge.io/license/epl-v10.html
@REM

@REM Older than Java 12
@REM java -Xmx1024M -cp "libs/*" -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/meleerumble.txt

@REM Java 12 and newer
java -Xmx1024M -cp "libs/*" -Djava.security.manager=allow -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/meleerumble.txt
4 changes: 4 additions & 0 deletions robocode.content/src/main/resources/meleerumble.command
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@

pwd=`pwd`
cd "${0%/*}"
# Older than Java 12
# java -Xmx1024M -cp "libs/*" -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/meleerumble.txt

# Java 12 and newer
java -Xdock:icon=roborumble.ico -Xdock:name=MeleeRumble -Xmx1024M -cp "libs/*" -Djava.security.manager=allow -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/meleerumble.txt
cd "${pwd}"
4 changes: 4 additions & 0 deletions robocode.content/src/main/resources/meleerumble.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@

pwd=`pwd`
cd "${0%/*}"
# Older than Java 12
# java -Xmx1024M -cp "libs/*" -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/meleerumble.txt

# Java 12 and newer
java -Xmx1024M -cp "libs/*" -Djava.security.manager=allow -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/meleerumble.txt
cd "${pwd}"
4 changes: 4 additions & 0 deletions robocode.content/src/main/resources/robocode.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@
@REM https://robocode.sourceforge.io/license/epl-v10.html
@REM

@REM Older than Java 12
@REM java -Xmx512M -cp "libs/*" -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" robocode.Robocode %*

@REM Java 12 and newer
java -Xmx512M -cp "libs/*" -Djava.security.manager=allow -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" robocode.Robocode %*
4 changes: 4 additions & 0 deletions robocode.content/src/main/resources/robocode.command
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@

pwd=`pwd`
cd "${0%/*}"
# Older than Java 12
# java -Xdock:icon=robocode.ico -Xdock:name=Robocode -Xmx512M -cp "libs/*" -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" robocode.Robocode $*

# Java 12 and newer
java -Xdock:icon=robocode.ico -Xdock:name=Robocode -Xmx512M -cp "libs/*" -Djava.security.manager=allow -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" robocode.Robocode $*
cd "${pwd}"
4 changes: 4 additions & 0 deletions robocode.content/src/main/resources/robocode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@

pwd=`pwd`
cd "${0%/*}"
# Older than Java 12
# java -Xmx512M -cp "libs/*" -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" robocode.Robocode $*

# Java 12 and newer
java -Xmx512M -cp "libs/*" -Djava.security.manager=allow -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" robocode.Robocode $*
cd "${pwd}"
4 changes: 4 additions & 0 deletions robocode.content/src/main/resources/roborumble.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@
@REM https://robocode.sourceforge.io/license/epl-v10.html
@REM

@REM Older than Java 12
@REM java -Xmx512M -cp "libs/*" -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/roborumble.txt

@REM Java 12 and newer
java -Xmx512M -cp "libs/*" -Djava.security.manager=allow -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/roborumble.txt
4 changes: 4 additions & 0 deletions robocode.content/src/main/resources/roborumble.command
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@

pwd=`pwd`
cd "${0%/*}"
# Older than Java 12
# java -Xdock:icon=roborumble.ico -Xdock:name=RoboRumble -Xmx512M -cp "libs/*" -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/roborumble.txt

# Java 12 and newer
java -Xdock:icon=roborumble.ico -Xdock:name=RoboRumble -Xmx512M -cp "libs/*" -Djava.security.manager=allow -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/roborumble.txt
cd "${pwd}"
4 changes: 4 additions & 0 deletions robocode.content/src/main/resources/roborumble.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@

pwd=`pwd`
cd "${0%/*}"
# Older than Java 12
# java -Xmx512M -cp "libs/*" -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome

# Java 12 and newer
java -Xmx512M -cp "libs/*" -Djava.security.manager=allow -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome
cd "${pwd}"
4 changes: 4 additions & 0 deletions robocode.content/src/main/resources/teamrumble.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@
@REM https://robocode.sourceforge.io/license/epl-v10.html
@REM

@REM Older than Java 12
@REM java -Xmx512M -cp "libs/*" -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/teamrumble.txt

@REM Java 12 and newer
java -Xmx512M -cp "libs/*" -Djava.security.manager=allow -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/teamrumble.txt
4 changes: 4 additions & 0 deletions robocode.content/src/main/resources/teamrumble.command
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@

pwd=`pwd`
cd "${0%/*}"
# Older than Java 12
# java -Xdock:icon=roborumble.ico -Xdock:name=TeamRumble -Xmx512M -cp "libs/*" -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/teamrumble.txt

# Java 12 and newer
java -Xdock:icon=roborumble.ico -Xdock:name=TeamRumble -Xmx512M -cp "libs/*" -Djava.security.manager=allow -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/teamrumble.txt
cd "${pwd}"
4 changes: 4 additions & 0 deletions robocode.content/src/main/resources/teamrumble.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@

pwd=`pwd`
cd "${0%/*}"
# Older than Java 12
# java -Xmx512M -cp "libs/*" -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/teamrumble.txt

# Java 12 and newer
java -Xmx512M -cp "libs/*" -Djava.security.manager=allow -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/teamrumble.txt
cd "${pwd}"
4 changes: 4 additions & 0 deletions robocode.content/src/main/resources/twinduel.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@
@REM https://robocode.sourceforge.io/license/epl-v10.html
@REM

@REM Older than Java 12
@REM java -Xmx512M -cp "libs/*" -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/twinduel.txt

@REM Java 12 and newer
java -Xmx512M -cp "libs/*" -Djava.security.manager=allow -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/twinduel.txt
4 changes: 4 additions & 0 deletions robocode.content/src/main/resources/twinduel.command
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@

pwd=`pwd`
cd "${0%/*}"
# Older than Java 12
# java -Xdock:icon=roborumble.ico -Xdock:name=TwinDuel -Xmx512M -cp "libs/*" -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/twinduel.txt

# Java 12 and newer
java -Xdock:icon=roborumble.ico -Xdock:name=TwinDuel -Xmx512M -cp "libs/*" -Djava.security.manager=allow -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/twinduel.txt
cd "${pwd}"
4 changes: 4 additions & 0 deletions robocode.content/src/main/resources/twinduel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@

pwd=`pwd`
cd "${0%/*}"
# Older than Java 12
# java -Xmx512M -cp "libs/*" -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/twinduel.txt

# Java 12 and newer
java -Xmx512M -cp "libs/*" -Djava.security.manager=allow -XX:+IgnoreUnrecognizedVMOptions "--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED" "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED" "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" roborumble.RoboRumbleAtHome ./roborumble/twinduel.txt
cd "${pwd}"

0 comments on commit 1fd605c

Please sign in to comment.