Skip to content

Commit

Permalink
Merge pull request #11 from fourlastor-alexandria/locate-jar-reliably
Browse files Browse the repository at this point in the history
Locate jar files reliably
  • Loading branch information
fourlastor committed Nov 24, 2023
2 parents d8df86e + 9a98d27 commit f5c3785
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,10 @@ fn main() {
let config_file_path = current_location.join("config.json");
let data = fs::read_to_string(config_file_path).expect("Unable to read config file");
let config: Config = serde_json::from_str(&data).expect("Invalid config json");
let class_path: Vec<String> = config.classPath.into_iter().map(|it| current_location.join(it).into_os_string().into_string().unwrap()).collect();
start_jvm(
&jvm_location,
config.classPath,
class_path,
&config.mainClass.replace(".", "/"),
config.vmArgs,
args,
Expand Down

0 comments on commit f5c3785

Please sign in to comment.