Crates.io | java_runtime |
lib.rs | java_runtime |
version | 0.0.2 |
source | src |
created_at | 2024-02-06 14:11:56.974162 |
updated_at | 2024-02-07 06:08:16.085724 |
description | An additional crate for j4rs, providing jre8. |
homepage | |
repository | https://github.com/xuxiaocheng0201/java_runtime |
max_upload_size | |
id | 1128977 |
size | 22,331 |
Read this in other languages: English, 简体中文.
Automatically detect Java path and download and install Jdk8u402 if it does not exist.
So that you can easily use j4rs
in any environment.
Detect installed Java path. (Using java_locator
crate.)
Validate Java version.
Auto download and install Java`.
Download progress callback.
Offline feature.
All platform support. (Now is only Windows
.)
More jre/jdk version support. (Now is only jdk8u402
.)
Add this to your Cargo.toml
:
[dependencies]
java_runtime = "~0.0"
use java_runtime::{Result, prepare_java8};
fn main() -> Result<()> {
prepare_java8()?;
Ok(())
}