I need help with getting path to java.exe. But I need it to do with java code. And I want it to work on Linux and Mac and on other systems too, so there won't be java.exe, I don't know what's there.
Does anyone know how to do it? Thanks.
I need help with getting path to java.exe. But I need it to do with java code. And I want it to work on Linux and Mac and on other systems too, so there won't be java.exe, I don't know what's there.
Does anyone know how to do it? Thanks.
Take a look at this post. Get path to the JRE
It explains how to get the path of where your java.exe bin/java file lies on your OS.
Also see the docs for more properties that are available