j4rs
j4rs copied to clipboard
Java for Rust
I am using j4rs to test the java kafka driver against my application. I have the following code: ```rust use j4rs::{InvocationArg, Jvm, JvmBuilder, MavenArtifact}; fn main() { let jvm: Jvm...
This fixes all of the clippy errors on the repo, there are still 258 clippy warnings left, but the errors represent more serious issues so I sought to resolve them...
Hello Team, I have a java library to use, code will be like this: https://github.com/dynatrace-research/exaloglog-paper/blob/main/java/src/test/java/com/dynatrace/exaloglogpaper/DistinctCountUtilTest.java How can I use it in j4rs? Thanks, Jianshu
when i initialize a jvm, like this: let entry = ClasspathEntry::new("/workspace/code/zenoh-flow-java/zenoh-flow/out/artifacts/zenoh_flow_jar/zenoh-flow.jar"); let ja = JvmBuilder::new() .with_default_classloader() .classpath_entry(entry) .build() .unwrap(); I got this panick: thread '' panicked at 'called `Result::unwrap()` on...
env: Windows 7 Home SP1 jre-8u-391 j4rs = "0.17.1" issue: ```cmd.exe java -jar local-server.jar // Using the command line is correct ``` Using j4rs ```code let jvm = match JvmBuilder::new()...
Hello and thanks for the great tool. We've run into a minor issue because of the way that JavaFX is included in j4rs (there even if not used) it causes...
Suppose I have a large codebase using j4rs, with calls to jvm::invoke_async. I don't want to audit every single call site to ensure the returned future is `CompletableFuture`. You should...
```--------------- T H R E A D --------------- Current thread (0x000055e5f95f7ae0): JavaThread "main" [_thread_in_native, id=11797, stack(0x00007ffc63e29000,0x00007ffc63f29000)] Stack: [0x00007ffc63e29000,0x00007ffc63f29000], sp=0x00007ffc63f22100, free space=996k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native...
Example Java: class CallClass() { fun abc(context: Context) { val namePackage = context.packageName } } Rust: fn test() { let ctx = ndk_context::android_context(); let jvm: Jvm = Jvm::attach_thread().unwrap(); let callClass...
Exception in thread "main" java.lang.VerifyError: Expecting a stackmap frame at branch target