Re: What is System.getProperty("os.arch","") of arm 64
- In reply to: Markus Graf : "What is System.getProperty("os.arch","") of arm 64"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 28 Feb 2026 15:50:15 UTC
Hi Markus!
On Fri, Feb 27, 2026 at 07:13:48PM +0100, Markus Graf wrote:
> To make it work on 64bit arm I need to know what
>
> System.getProperty("os.arch","")
>
> returns for 64bit arm.
It returns "aarch64".
------
freebsd% cat ./osarch.java
void main() {
System.out.println(
"os.arch = "
+ System.getProperty("os.arch", ""));
}
freebsd% java ./osarch.java
os.arch = aarch64
------
> Is non 64bit arm FreeBSD Java in use?
There are some issues in the bug tracker about Java for FreeBSD on
aarch64, so I would guess it is. I don't have any insights into how
much, or if anybody relies on it in production yet, though.
> Should I upstream a profile for non 64bit arm too?
I don't really have an opinion on that. It seems to be supported for
now, both by OpenJDK and FreeBSD, so if you feel like it. I don't have a
32 bit arm system to test for now, so can't help with the output there.
Take care!
Harald