Re: What is System.getProperty("os.arch","") of arm 64
Harald Eilertsen <[email protected]> Sat, 28 Feb 2026 16:50:15 +0100
| Newsgroups | gmane.os.freebsd.devel.java |
|---|---|
| Message-ID | <[email protected]> |
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