3 ms·
You made me search it again. And still I don't see how that's possible. `Runtime.load` requires a regular file with an absolute path[0]. Stackoverflow is full
by maksut 2y ago
You made me search it again. And still I don't see how that's possible. `Runtime.load` requires a regular file with an absolute path[0].
Stackoverflow is full of "copy it into a temp file" solutions. ChatGPT keeps saying "sorry" but still insists on copying it into a temp file :)
[0] - https://docs.oracle.com/en%2Fjava%2Fjavase%2F22%2Fdocs%2Fapi%2F%2F/java.base/java/lang/Runtime.html#load(java.lang.String) https://docs.oracle.com/en%2Fjava%2Fjavase%2F22%2Fdocs%2Fapi...
- renewiltord 2y agoEmbarrassing of me to give you wrong answer. I went and checked my old code and: new FileOutputStream(tmpFile) Apologies.