You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm calling code through javacpp in a plugin written for ImageJ/Fiji. Fiji, unfortunately, uses a native binary to startup the Java call and forces everything through its own launcher. This launcher in turn call everything else nicely, but as far as System.getProperty("java.class.path") is concerned, only that launcher's jar is on the classpath. On Windows, this results in the javacpp Loader class being unable to tie into the shutdown hook and clean up the temp directories (since the ImageJ launcher doesn't bother looking for the javacpp jar). To alleviate this, could line 572 in Loader.java be changed from:
That long and ugly string of commands locates the jar containing the javacpp Loader (and converts it so system-native format). I've been using a similar bit of code to locate the jar with my own code and write files to the same directory.
I can put the change in a pull request if you think it's a good modification.
The text was updated successfully, but these errors were encountered:
* Provide `UByteIndexer` and `UShortIndexer`, treating array and buffer data as unsigned integers, for ease of use
* Clean up Windows `java.io.tmpdir` even when program messes with `java.class.path` (issue #12)
I'm calling code through javacpp in a plugin written for ImageJ/Fiji. Fiji, unfortunately, uses a native binary to startup the Java call and forces everything through its own launcher. This launcher in turn call everything else nicely, but as far as
System.getProperty("java.class.path")
is concerned, only that launcher's jar is on the classpath. On Windows, this results in the javacpp Loader class being unable to tie into the shutdown hook and clean up the temp directories (since the ImageJ launcher doesn't bother looking for the javacpp jar). To alleviate this, could line 572 in Loader.java be changed from:to
That long and ugly string of commands locates the jar containing the javacpp Loader (and converts it so system-native format). I've been using a similar bit of code to locate the jar with my own code and write files to the same directory.
I can put the change in a pull request if you think it's a good modification.
The text was updated successfully, but these errors were encountered: