Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Feb 2026 16:50:15 +0100
From:      Harald Eilertsen <haraldei@anduin.net>
To:        Markus Graf <markus.graf@markusgraf.net>
Cc:        FreeBSD Java mailing list <freebsd-java@freebsd.org>
Subject:   Re: What is System.getProperty("os.arch","") of arm 64
Message-ID:  <aaMMotb-HJ_p-tve@samhain.localdomain>
In-Reply-To: <86tsv2m4v7.fsf@beasty.markusgraf.net>

index | next in thread | previous in thread | raw e-mail

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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aaMMotb-HJ_p-tve>