j4rs: JavaFX support (WIP)

Note: JavaFX support in j4rs is a work in progress. Adding features as the time passes and versioning evolves seems better than attempting to create full-feature JavaFX support for Rust. The latter feels rather difficult, frightening and time-demanding. Introduction Some time ago, I was exploring things that can be achieved by using j4rs and had the idea to implement a JavaFX GUI. This indeed happened, but the attempt included implementing some parts in Java and some in Rust, along with several hacks. [Read More]
rust  java  j4rs  javafx 

j4rs v0.12.0: Java to Rust direction

I would like to share a new direction that my j4rs project took after its 0.12.0 release. Until v0.12.0, j4rs provided to Rust applications the tools to achieve calls to the Java world. This included setting up and manage JVMs, instantiating Java Classes, making calls to Java methods, providing the means for Java to Rust callbacks etc. The project was following solely a Rust-first approach, giving the Rust applications the ability to take advantage of the huge amount of libraries and tools existing in the Java ecosystem. [Read More]
rust  java  j4rs 

Announcing j4rs

j4rs stands for “Java for Rust” and allows effortless calls to Java code, from Rust. Some time ago, on a need to call Java code from Rust, I started the j4rs project. The main idea was to implement a crate that would give the ability to its users to make calls to Java easily, so that they can benefit from the huge Java ecosystem. By “easily”, I mean: Taking care about the configuration required by JNI (e. [Read More]
rust  java  j4rs 

JavaFX UI in Rust

Dear reader, this post describes an approach that is outdated. You may be interested in this post instead. In this post, I would like to share the way how we can implement a Rust application that has a User Interface written in JavaFX. A brief description follows, but you may see the full code here. General description We will create a Rust application that: Creates a JVM Starts a JavaFX application Accepts callbacks from the Java world and prints them in the console. [Read More]
rust  javafx  j4rs