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

  • SEARCH
  • Home
  • 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 7594617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:27:50+00:00 2026-05-30T21:27:50+00:00

My application is written in Java (J2SE) and was originally designed for a Windows

  • 0

My application is written in Java (J2SE) and was originally designed for a Windows environment. It was written on a Windows OS. I am now trying to figure out how to get the application to run on Ubuntu 10.04 LTS and have no idea where to start. I have multiple supporting libraries (.jar files) that I have no idea how to package together for linux. Much less how to create any type of executable. I know that an .exe file will not work and I cannot use WINE.

I also have the issue of different file paths. I have some hardcoded paths (C:\folder\xxx.txt) and need to change them so the application can write and read to them on either OS. Not sure how to proceed with this one either other than testing for a specific OS and changing the paths accordingly.

Making this all more complicated is the fact that my Linux experience is very limited.

  • 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-30T21:27:51+00:00Added an answer on May 30, 2026 at 9:27 pm

    First, get some familiarity with how applications are used on Linux. It will make the process easier, and will help you do a good job.

    Secondly, remove any hardcoded paths of any kind from your source code. All paths should be specified by the user, or at very least stored in a .properties file and read in at run time. This is good practice even if you are only targeting one OS: why do you expect that your users are OK with you putting a new folder in their C: drive on Windows?

    As for where your files go, the easiest way to deal with this is to create a single tarball (tar.gz archive) containing all your JARs and other resources, and a single Bourne shell script called by the name of your program (with no extension). The script can find the JARs and launch the java executable (which is usually under /usr/bin/java) to start your application.

    You’ll probably get more help if you ask specific questions about specific steps of the problem. If you’re just looking for things like where the appropriate folders are located, then the correct place is probably unix.stackexchange.com; if you need user-level help, then askubuntu.com is probably the right place.

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

Sidebar

Related Questions

Question I have an application written in Java. It is designed to run on
I have a web-application written in java. I would like to run integration tests
I want to distribute a command-line application written in Java on Windows. My application
I have an application written in Java to run on Linux. I'm developing in
I have a Windows Mobile application written in Java that uses AWT for the
Our application is written in Java. Now we are integrating with a different company
I have a console application (written in Java), which should run on a Linux
I ask you how to start for creating a Windows application written in JAVA
I have an application written in java, and I want to add a flash
I have web application written in java using Eclipse. It has just one servlet

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.