diff --git a/src/main.rs b/src/main.rs index d59b559..9dde3e2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -216,7 +216,7 @@ fn main() { let jvm_location = current_location.join(JVM_LOCATION.iter().collect::()); let config_file_path = current_location .join(APP_FOLDER) - .join(current_exe.with_extension("json")); + .join(current_exe.with_extension("json").file_name().unwrap()); let config: Config = read_config(config_file_path).expect(&format!("Unable to read config file {}/{}/{}", current_location.to_string_lossy(), APP_FOLDER, current_exe.with_extension("json").to_string_lossy())); let class_path: Vec = config .classPath