+2 votes
270 views
How to change the default folder in which openLCA saves databases?
asked by (620 points)
retagged by

1 Answer

+2 votes
answered by (13.3k points)
edited by
 
Best answer

The recent versios of openLCA save databases under

C:\Users\Username\openLCA-data-1.4\databases

To change this navigate to the folder in which the openLCA.exe file lies. Open the file openLCA.ini in the same folder with a text editor. Below the line en add the following two lines of which the second line is the file path to the new folder (make sure you copied the databases from the original folder into the new folder).

-olcaDataDir
Drive:\Path\to\openLCA-database-folder

Save and start openLCA.

Backup your openLCA.ini before applying changes! Don't delete the original folder before you assured that the new folder has been set-up correctly (create a test database and check whether it shows up in the new folder)!

Example for an updated openLCA.ini:

-nl
en
-olcaDataDir
D:\openLCA-data-1.4
-data
@noDefault
-vmargs
-Xmx26624M
-Dosgi.framework.extensions=org.eclipse.fx.osgi
--add-modules=ALL-SYSTEM

 

commented by (13.3k points)
Hi Erik, without an error message or some more detail I am afraid, I will not be able to help much. What if yu try this (please backup your openlca.ini first!):

-nl
en
-olcaDataDir
C:\openLCA-data-1.4
-data
@noDefault
-vmargs
-Xmx6000M
-Dosgi.framework.extensions=org.eclipse.fx.osgi
--add-modules=ALL-SYS
commented by (180 points)
Thank you for your comment, now it works also with the code I posted originally, but I had to restart openLCA several times (for whatever reason...)
commented by (13.3k points)
Good to hear, thanks.
...