Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6743293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:56:39+00:00 2026-05-26T11:56:39+00:00

I write cross-platform java app and I need some place where I can store

  • 0

I write cross-platform java app and I need some place where I can store some amount of files. These files will be used by another java application that may run under another user. This mean that I cannot use:

System.getProperty("user.home");

since I may have no permissions to read/write these files. What I need is some way to get non-user-specific folder where every app can create/read/delete files (something like “C:\ProgramData” for windows).
Is there a cross-platform way to get such folder(at least for Windows and Linux), or if there is no any – what is the best way to get such folders for Windows(should work on XP-7), Linux and Android.
Any pieces of puzzle are welcomed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:56:39+00:00Added an answer on May 26, 2026 at 11:56 am

    I’m not aware of such such a cross-platform folder which is additionally readable by all users. But you can:

    • Define a specific folder for each OS, commons-lang may help you determining the platform (see SystemUtils)
    • Check if the folder read/writeable for the current user during application start-up.

    Using a central configuration (where the data exchange folder is defined for this installation) may also be an option, but this depends on the packaging of your project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to write cross platform application (basically CRUD). Is usage of Java Swing
I need to write cross-platform GUI application, what toolkit can I use? Currently I
I've been asked to write a cross-platform desktop app in Java. Targeted platforms are
I am wanting to write some cross-platform library code. I am creating a library
I need to store some data (strings, dates etc) and these data would be
I would like to write a cross-platform function in C++ that contains system calls.
I am attempting to write a cross-platform GUI application that would be deployed to
I'm working on an application that I need to be cross-platform. I'd like to
I write cross-platform software, so I like my Windows environment to be Un*x-like (I'm
I'm writing a Java application which requires a number of resource files (there will

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.