rage/tmc-langs-rust

Panic raised when jvm.dll not found

Closed this issue · 1 comments

Crate j4rs panics on this line if JAVA_HOME environment variable is not set correctly or jvm.dll is not found from the path set as JAVA_HOME.

thread 'main' panicked at 'Could find the jvm dynamic library: JavaLocatorError { description: "Java is not installed or not added in the system PATH" }', C:\Users\Arttu\.cargo\registry\src\github.com-1ecc6299db9ec823\j4rs-0.13.0\src\api_tweaks\generic.rs:41:38

tmc-langs-rust calls it on plugins/java/src/lib.rs line 115

Thanks, this was previously taken care of by catching it in the langs CLI but I forgot to reconsider it when langs started being used as a library as well.