Java Product : Current Directory - 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!

CharlesAnthony
Posts: 18
Joined: Wed Oct 07, 2009 9:45 am

Java Product : Current Directory

Hi,

Is it possible to set the current directory of a java product to be a property i.e. APP_DIR?

Our apps usually have a layout of

APP_DIR\bin
launchers - e.g. batch files, shell scripts, or in this case, AI "java product" .exe
APP_DIR\lib
*.jar
APP_DIR\conf
*.properties, configuration files etc
APP_DIR\log
log files

And when the applications start, their current location should be APP_DIR.

In other words, I want the AI .exe to be created in APP_DIR\bin (I moved the exe in the files/folders tree), but it's current location to be APP_DIR\

I can see that I can "set product folder as current" - so the current dir becomes "bin" - and without that flag, current directory is C:\Windows.

Regards,

Charles
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Java Product : Current Directory

Hello Charles,

To achieve this, you can follow these steps:
- on the Java Products page, Virtual Machine tab, press the [...] button next to the Java Parameters field.
- press the [Add] button on the dialog that pops up
- select "Current Directory" from the menu
- set your property in the second field, leave the first field unchanged

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”