0

I am using Mac's Jar Bundler to create a (.app) file for my Java application. My java application consists of a jar file + a couple of folders. I want to put the jar file inside the .app file, but keep the folders outside the .app file. Is this possible ?

I see the default resources path is Contents/Resources/Java inside the .app file, so can this be set to the parent path of the .app file ?

Brad
  • 4,457
  • 10
  • 56
  • 93
  • Is you problem solve? If yes! Can you help me out, Now I'm facing same problem.Thanks http://stackoverflow.com/questions/36639175/derby-appdata-not-found-by-desktopos-jar-when-im-try-to-create-a-mac-os-x-appl –  Apr 15 '16 at 16:59

1 Answers1

3

Among the Java Dictionary Info.plist Keys, $APP_PACKAGE "expands into the path to the root directory of the application bundle." Alternatively, consider creating copies of your folder data in $USER_HOME or Preferences.

trashgod
  • 203,806
  • 29
  • 246
  • 1,045
  • Thanks a lot, but i want the folders to appear on the same path of the app file, so when the user runs the DMG file he will see the .app file + a group of files which he can access easily when necessary. – Brad Oct 31 '11 at 11:36
  • That's probably OK for read-only data or a single, administrative user; but I'm not sure it would scale well. – trashgod Oct 31 '11 at 15:28