diff --git a/bundler/src/main/java/dev/openrs2/bundler/Bundler.kt b/bundler/src/main/java/dev/openrs2/bundler/Bundler.kt index 595443c932..7a0f3713c3 100644 --- a/bundler/src/main/java/dev/openrs2/bundler/Bundler.kt +++ b/bundler/src/main/java/dev/openrs2/bundler/Bundler.kt @@ -44,7 +44,7 @@ class Bundler @Inject constructor(publicKeyTransformer: PublicKeyTransformer) { val glClient = Library.readPack(input.resolve("runescape_gl.pack200")) // bundle libraries together into a common classpath - val runtime = ClassLoader.getSystemClassLoader() + val runtime = ClassLoader.getPlatformClassLoader() val classPath = ClassPath( runtime, dependencies = listOf(unpacker), diff --git a/deob/src/main/java/dev/openrs2/deob/Deobfuscator.kt b/deob/src/main/java/dev/openrs2/deob/Deobfuscator.kt index 0b7bdbabf0..9feb9fd365 100644 --- a/deob/src/main/java/dev/openrs2/deob/Deobfuscator.kt +++ b/deob/src/main/java/dev/openrs2/deob/Deobfuscator.kt @@ -88,7 +88,7 @@ class Deobfuscator(private val input: Path, private val output: Path) { glUnpacker.remap(create(glUnpacker, "unpacker_")) // bundle libraries together into a common classpath - val runtime = ClassLoader.getSystemClassLoader() + val runtime = ClassLoader.getPlatformClassLoader() val classPath = ClassPath( runtime, dependencies = emptyList(),