MCPcopy Create free account
hub / github.com/astonbitecode/j4rs / with_no_implicit_classpath

Method with_no_implicit_classpath

rust/src/api/mod.rs:1759–1762  ·  view source on GitHub ↗

By default, the created `Jvm`s include an implicit classpath entry that includes the j4rs jar. When `with_no_implicit_classpath()` is called, this classpath will not be added to the Jvm.

(&'a mut self)

Source from the content-addressed store, hash-verified

1757 /// By default, the created `Jvm`s include an implicit classpath entry that includes the j4rs jar.
1758 /// When `with_no_implicit_classpath()` is called, this classpath will not be added to the Jvm.
1759 pub fn with_no_implicit_classpath(&'a mut self) -> &'a mut JvmBuilder<'a> {
1760 self.no_implicit_classpath = true;
1761 self
1762 }
1763
1764 /// When a Jvm goes out of scope and is being dropped, its current thread is being detached from the Java VM.
1765 /// A Jvm that is created with `detach_thread_on_drop(false)` will not detach the thread when being dropped.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected