serick
Posts: 7
Joined: Wed Feb 14, 2007 9:19 pm
Location: Boston
Contact: Website

APPDIR on Mac OS X

What is the APPDIR property set to on Mac OS X? Is is the runtime user's home directory, or the *.app bundle directory, or ???

I need to set Java's user.home property to "[the bundle's .app directory]/Contents/Resources/Java", which is where by application's files are located.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

That folder corresponds to the APPDIR property. So in the "Edit JVM Parameters" dialog select "Add->Home Directory" and type [APPDIR] for the value.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
serick
Posts: 7
Joined: Wed Feb 14, 2007 9:19 pm
Location: Boston
Contact: Website

Ok, thanks, ... so my real question is; what does it point to, for the Mac OSx zip file installation?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The "[the bundle's .app directory]/Contents/Resources/Java" folder corresponds to the APPDIR property. To set Java's user.home property to APPDIR open the "Edit JVM Parameters" dialog and select "Add->Home Directory".

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
serick
Posts: 7
Joined: Wed Feb 14, 2007 9:19 pm
Location: Boston
Contact: Website

Gigi,

The actual value (printed from my Mac) has two extra characters at the end, "/:" For example, here's my output when I print the "user.home" property from an application wrapped by Advanced Installer:

user.home=/Users/chris/Desktop/EnvTest/EnvTest.app/Contents/Resources/Java/:

The path is correct, except for those last two characters.

For now, I will edit my app to substring those characters away.
mclellac
Posts: 3
Joined: Mon May 14, 2007 11:06 pm
Location: Calgary

I am also experiencing this problem with user.dir. Removing the ":" from the end of the line resolves the problem.

Do you have any idea when this will be fixed?
Thanks.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You are right, this is due to a bug of AI. The fix will be available in the next version of AI scheduled for release at the end of this month.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”