Skip to content

Commit

Permalink
Added java9args for launching crucible
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmuscaria committed Jan 8, 2024
1 parent ff58430 commit d6c1f18
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
36 changes: 36 additions & 0 deletions java9args.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
--illegal-access=warn
-Djava.security.manager=allow
-Dfile.encoding=UTF-8
-Dcrucible.weAreJava9=true
--add-opens
java.base/jdk.internal.loader=ALL-UNNAMED
--add-opens
java.base/java.net=ALL-UNNAMED
--add-opens
java.base/java.nio=ALL-UNNAMED
--add-opens
java.base/java.io=ALL-UNNAMED
--add-opens
java.base/java.lang=ALL-UNNAMED
--add-opens
java.base/java.lang.reflect=ALL-UNNAMED
--add-opens
java.base/java.text=ALL-UNNAMED
--add-opens
java.base/java.util=ALL-UNNAMED
--add-opens
java.base/jdk.internal.reflect=ALL-UNNAMED
--add-opens
java.base/sun.nio.ch=ALL-UNNAMED
--add-opens
jdk.naming.dns/com.sun.jndi.dns=ALL-UNNAMED,java.naming
--add-opens
java.desktop/sun.awt.image=ALL-UNNAMED
--add-opens
java.desktop/com.sun.imageio.plugins.png=ALL-UNNAMED
--add-modules jdk.dynalink
--add-opens
jdk.dynalink/jdk.dynalink.beans=ALL-UNNAMED
--add-modules java.sql.rowset
--add-opens
java.sql.rowset/javax.sql.rowset.serial=ALL-UNNAMED
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,14 @@ public class Lwjgl3ifyGlue {
public static void checkJava() {
System.out.println("[Crucible] Crucible now supports Java 8-17 by embedding a modified version of lwjgl3ify (https://github.com/GTNewHorizons/lwjgl3ify/).");
System.out.println("[Crucible] Do not report issues to upstream. All issues with newer Java version must be reported to Crucible's issue tracker instead.");
final String specVer = System.getProperty("java.specification.version");

// Is there any jvm where the specs is 8 instead of 1.8?
if (!Boolean.getBoolean("crucible.weAreJava9") && !(specVer.equals("1.8"))) {
System.out.println("[Crucible] Looks like you are missing the special java9+, the server may not launch without them.");
}

if (!Boolean.getBoolean("lwjgl3ify.skipjavacheck")) {
final String specVer = System.getProperty("java.specification.version");
if (specVer.equals("17")) {
try {
final Class<?> cRuntime = Class.forName("java.lang.Runtime");
Expand Down

0 comments on commit d6c1f18

Please sign in to comment.