2

I am currently working on a GPU-accalerated fractal viewer. Because of a missing easy-to-use GUI library in Rust-lang I want to pass the generated Image(Object) to java. Is it possible to run such an application efficiently? Which interface do I need?

mcarton
  • 27,633
  • 5
  • 85
  • 95
HeroAAX
  • 29
  • 1
  • Why not embed an HTTP server in the rust program and let it serve images via HTTP to whatever you want? An app, a web page, a standalone Java program, or whatever. – Enselic Sep 25 '20 at 17:46
  • Does this answer your question? [How to return an array from JNI to Java?](https://stackoverflow.com/questions/1610045/how-to-return-an-array-from-jni-to-java) – MaxV Sep 25 '20 at 18:39
  • 1
    You can use JNI or JNA to call a rust library from Java, or you can use JNI to run a JVM from rust code and call Java code. – Mark Rotteveel Sep 26 '20 at 09:58

0 Answers0