File tree Expand file tree Collapse file tree
starter_templates/kotlin/code/.codecrafters Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,5 +11,6 @@ set -e # Exit on failure
1111LIBS_DIR=" /tmp/codecrafters-libs-shell-kotlin"
1212BUILD_DIR=" /tmp/codecrafters-build-shell-kotlin"
1313KOTLIN_MAIN=" $BUILD_DIR /classes/kotlin/main"
14+ JVM_OPTS=" --enable-native-access=ALL-UNNAMED --sun-misc-unsafe-memory-access=allow"
1415
15- exec java -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
16+ exec java $JVM_OPTS -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
Original file line number Diff line number Diff line change @@ -39,4 +39,5 @@ set -e # Exit early if any commands fail
3939LIBS_DIR=" /tmp/codecrafters-libs-shell-kotlin"
4040BUILD_DIR=" /tmp/codecrafters-build-shell-kotlin"
4141KOTLIN_MAIN=" $BUILD_DIR /classes/kotlin/main"
42- exec java -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
42+ JVM_OPTS=" --enable-native-access=ALL-UNNAMED --sun-misc-unsafe-memory-access=allow"
43+ exec java $JVM_OPTS -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
Original file line number Diff line number Diff line change @@ -11,5 +11,6 @@ set -e # Exit on failure
1111LIBS_DIR=" /tmp/codecrafters-libs-shell-kotlin"
1212BUILD_DIR=" /tmp/codecrafters-build-shell-kotlin"
1313KOTLIN_MAIN=" $BUILD_DIR /classes/kotlin/main"
14+ JVM_OPTS=" --enable-native-access=ALL-UNNAMED --sun-misc-unsafe-memory-access=allow"
1415
15- exec java -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
16+ exec java $JVM_OPTS -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
Original file line number Diff line number Diff line change @@ -39,4 +39,5 @@ set -e # Exit early if any commands fail
3939LIBS_DIR=" /tmp/codecrafters-libs-shell-kotlin"
4040BUILD_DIR=" /tmp/codecrafters-build-shell-kotlin"
4141KOTLIN_MAIN=" $BUILD_DIR /classes/kotlin/main"
42- exec java -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
42+ JVM_OPTS=" --enable-native-access=ALL-UNNAMED --sun-misc-unsafe-memory-access=allow"
43+ exec java $JVM_OPTS -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
Original file line number Diff line number Diff line change @@ -11,5 +11,6 @@ set -e # Exit on failure
1111LIBS_DIR=" /tmp/codecrafters-libs-shell-kotlin"
1212BUILD_DIR=" /tmp/codecrafters-build-shell-kotlin"
1313KOTLIN_MAIN=" $BUILD_DIR /classes/kotlin/main"
14+ JVM_OPTS=" --enable-native-access=ALL-UNNAMED --sun-misc-unsafe-memory-access=allow"
1415
15- exec java -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
16+ exec java $JVM_OPTS -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
Original file line number Diff line number Diff line change @@ -39,4 +39,5 @@ set -e # Exit early if any commands fail
3939LIBS_DIR=" /tmp/codecrafters-libs-shell-kotlin"
4040BUILD_DIR=" /tmp/codecrafters-build-shell-kotlin"
4141KOTLIN_MAIN=" $BUILD_DIR /classes/kotlin/main"
42- exec java -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
42+ JVM_OPTS=" --enable-native-access=ALL-UNNAMED --sun-misc-unsafe-memory-access=allow"
43+ exec java $JVM_OPTS -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
Original file line number Diff line number Diff line change @@ -11,5 +11,6 @@ set -e # Exit on failure
1111LIBS_DIR=" /tmp/codecrafters-libs-shell-kotlin"
1212BUILD_DIR=" /tmp/codecrafters-build-shell-kotlin"
1313KOTLIN_MAIN=" $BUILD_DIR /classes/kotlin/main"
14+ JVM_OPTS=" --enable-native-access=ALL-UNNAMED --sun-misc-unsafe-memory-access=allow"
1415
15- exec java -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
16+ exec java $JVM_OPTS -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
Original file line number Diff line number Diff line change @@ -39,4 +39,5 @@ set -e # Exit early if any commands fail
3939LIBS_DIR=" /tmp/codecrafters-libs-shell-kotlin"
4040BUILD_DIR=" /tmp/codecrafters-build-shell-kotlin"
4141KOTLIN_MAIN=" $BUILD_DIR /classes/kotlin/main"
42- exec java -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
42+ JVM_OPTS=" --enable-native-access=ALL-UNNAMED --sun-misc-unsafe-memory-access=allow"
43+ exec java $JVM_OPTS -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
Original file line number Diff line number Diff line change @@ -11,5 +11,6 @@ set -e # Exit on failure
1111LIBS_DIR=" /tmp/codecrafters-libs-shell-kotlin"
1212BUILD_DIR=" /tmp/codecrafters-build-shell-kotlin"
1313KOTLIN_MAIN=" $BUILD_DIR /classes/kotlin/main"
14+ JVM_OPTS=" --enable-native-access=ALL-UNNAMED --sun-misc-unsafe-memory-access=allow"
1415
15- exec java -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
16+ exec java $JVM_OPTS -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
Original file line number Diff line number Diff line change @@ -39,4 +39,5 @@ set -e # Exit early if any commands fail
3939LIBS_DIR=" /tmp/codecrafters-libs-shell-kotlin"
4040BUILD_DIR=" /tmp/codecrafters-build-shell-kotlin"
4141KOTLIN_MAIN=" $BUILD_DIR /classes/kotlin/main"
42- exec java -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
42+ JVM_OPTS=" --enable-native-access=ALL-UNNAMED --sun-misc-unsafe-memory-access=allow"
43+ exec java $JVM_OPTS -cp " $KOTLIN_MAIN :$LIBS_DIR /*" AppKt " $@ "
You can’t perform that action at this time.
0 commit comments