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 6605497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:17:27+00:00 2026-05-25T19:17:27+00:00

I have created an executable java Swing .jar application. It works fine on Windows.

  • 0

I have created an executable java Swing .jar application. It works fine on Windows. The application hierarchy is :

application.jar

images(Folder) ………. Contains all images the application uses.

libraries(Folder) ……. Contains all external jar libraries the application uses.

bundles(Folder) ……… Contains all bundle files the application uses.

database(Folder) …….. Contains the database files the application uses.

All the above folders exist outside the jar file. Now i am trying to create a Mac executable file (.app) from "application.jar" to run it on Mac so i used the "Jar Bundler" as specified here but when i run the output application.app file nothing happens, nothing runs and i can’t even debug it.

I think the main reason is that it can’t see the external folders. So is it impossible to create a .app file if the application has external folders ?
And is there a way to debug the .app file to see what’s going on ?

  • 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-25T19:17:28+00:00Added an answer on May 25, 2026 at 7:17 pm

    Most likely the problem is your working directory.

    • When you run an executable JAR file by double-clicking it, the working directory is the parent directory of the JAR file.

    • By default, the working directory of an application bundle is its parent directory. If you package the external folders into the application bundle they will be located under $APP_PACKAGE/Contents/Resources.

    So the assumption about the working directory that you make for an executable JAR file does not hold for an application bundle.

    In order to set the working directory to the resources directory, add

    <key>WorkingDirectory</key>
    <string>$APP_PACKAGE/Contents/Resources</string>
    

    to the Info.plist file of your bundle.

    In case you know nothing about application bundles, please read this document.

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

Sidebar

Related Questions

I have created an executable JAR file for my Java application. If I double-click
I'm building an executable jar for a maven java project I have. It works
I have created an executable Java .jar file. That is to say, I properly
Hi I have created executable jar of my java program i want to create
Hello I have created and application which contains a gridview that is populated by
I have a Java application in which user can give any executable file (.exe)
I have created a java application which depends upon some external jars. Now I
I have created a Java application which has the following Apache Ant build file:
I have an executable module created by third party. I would like to inject
Have created a c++ implementation of the Hough transform for detecting lines in images.

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.