LauncherV3
LauncherV3 copied to clipboard
Improve Windows 64-bit detection
This issue is stale because it has been open for 90 days with no activity.
You can check for sun.arch.data.model
which is commonly defined and then fall back to "os.arch" if its not there. Relevant doc:
https://docs.oracle.com/javame/config/cdc/cdc-opt-impl/ojmeec/1.1/architecture/html/properties.htm
Platform word size. Examples: "32", "64", "unknown"
jshell> System.getProperty("sun.arch.data.model")
$1 ==> "64"
sun.arch.data.model
will only give you what bitness the JRE is, which is exactly the problem.
Ah I see, in that case maybe JNI, JNA but even then its kind of overkill