Java Project: problem with folder path after installation - 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!

lc81
Posts: 2
Joined: Wed Sep 17, 2008 9:53 pm

Java Project: problem with folder path after installation

Hi,
I'm worked in a previous java project in my firm. After I've finished the work in java proect with eclipse, I've produced the installer with Advanced Installer creating a package with the jar runtime file, the libraries, the text files for error and output logs. I've to insert also in the package 2 folders "css" and "xml" with other application files. The installer runs well an the project works creating specific files. If I'm try to open this file directly in the project running all the project features works properly, but if I'm trying to open the same files with the double click on them or with "Open with..." the functionalities that launche the files in the folder "css" and "xml" don't works. That's ok only if the project file opened with the double click is into the same directory of the project...
How can I get to link them into the installer package?
Sorry for the complex explanation...
Somebody can help me? Thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Java Project: problem with folder path after installation

Hi,

Most likely the working directory of your Java Product is not set to the installation folder, therefore it cannot find the necessary files. A solution for this would be to check the "Set current directory to product folder" option in the Settings tab of the "Java Products" page.

Another solution would be to set the user.dir system property:
- select your product in the "Java Products" page
- go to the Virtual machine tab
- click on the "..." button in the "JVM Parameters" field
- in the Edit JVM Parameters dialog use the "Add" button to select the "Current Directory" option
- in the New JVM System Property dialog use the default values and click on "OK"

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
lc81
Posts: 2
Joined: Wed Sep 17, 2008 9:53 pm

Re: Java Project: problem with folder path after installation

Thanks a lot.
I solved the problem with your fist advice.

:D

Return to “Common Problems”