- silence java warnings
- renam View -> Imread in Python
This commit is contained in:
@@ -108,16 +108,11 @@ fn jvm() -> Rc<Jvm> {
|
||||
let j = JvmBuilder::new()
|
||||
.skip_setting_native_lib()
|
||||
.with_base_path(class_path.to_str().unwrap())
|
||||
.java_opt(JavaOpt::new("-XX:+IgnoreUnrecognizedVMOptions"))
|
||||
.java_opt(JavaOpt::new("--enable-native-access=ALL-UNNAMED"))
|
||||
.build();
|
||||
let j = match j {
|
||||
Ok(j) => j,
|
||||
Err(_) => JvmBuilder::new()
|
||||
.skip_setting_native_lib()
|
||||
.with_base_path(class_path.to_str().unwrap())
|
||||
.build()
|
||||
.expect("Failed to build JVM"),
|
||||
};
|
||||
.java_opt(JavaOpt::new("--sun-misc-unsafe-memory-access=allow"))
|
||||
.build()
|
||||
.expect("Failed to build JVM");
|
||||
if let Ok(e) = InvocationArg::try_from("ERROR") {
|
||||
let _ = j.invoke_static(
|
||||
"loci.common.DebugTools",
|
||||
|
||||
Reference in New Issue
Block a user