Java app on MacOS and WorkingDirectory - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

l.guarino
Posts: 15
Joined: Tue Aug 09, 2011 3:42 pm

Java app on MacOS and WorkingDirectory

I can't find a way to put the "WorkingDirectory" parameter in the plist.info file when I compile an app for Mac.
"Set product folder as current" don't work.
Putting -WORK_DIR in JVM parameters don't work either.

Is there a way to put that in the generated plist.info ?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Java app on MacOS and WorkingDirectory

Hi,

Under "Virtual Machine" tab you can edit the "JVM Parameters". In the Edit JVM Parameters dialog you will find the button "Add", from there select "Current Directory".
This should add the desired info in the file.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
l.guarino
Posts: 15
Joined: Tue Aug 09, 2011 3:42 pm

Re: Java app on MacOS and WorkingDirectory

I'm sorry but this will just add "user.dir" parameter. What I need is "WorkingDirectory" string in the plist.info.
Nevermind tho, I manage to put that string in the plist using a mac script.
Too bad it can't be set by your app.

Return to “Common Problems”