Skip to content

retrieving windows folders broken, APPDATA #628

@soloturn

Description

@soloturn

making portable java code which stores its files in the correct locations for different operating system is a challeng. as one user called it at the tiny dirs-dev library trying to implement these directories: dirs-dev/directories-jvm#49. The internet is full of suggestions how to do it, most of them failed at some point.

At the end of the day, why on earth people think it is necessary to access a native windows system call to find something that trivial as APPDATA or LOCALAPPDATA in a reliable way?

Just some random links:

Would you please be so kind to make a statement from Microsoft point of view how to properly and reliably retrieve the values with openjdk-21, WITHOUT using native , and for which windows operating system versions this is valid?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions