Skip to content

Commit 6ded784

Browse files
committed
Add default classloader
1 parent 971855e commit 6ded784

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/plugins/java/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ fn instantiate_jvm() -> Result<JvmWrapper, JavaError> {
140140
// j4rs may panic
141141
let jvm = match std::panic::catch_unwind(|| -> Result<Jvm, JavaError> {
142142
let jvm = JvmBuilder::new()
143+
.with_default_classloader()
143144
.with_base_path(
144145
tmc_dir
145146
.to_str()

0 commit comments

Comments
 (0)