This repository contains the source code of the openLCA application. openLCA is a Java application that runs on the Eclipse Rich Client Platform (Eclipse RCP). This project depends on the olca-modules project which is a plain Maven project that contains the core functionalities (e.g. the model, database access, calculations, and data exchange).
The repository has the following sub-projects:
- olca-app: contains the source code of the openLCA RCP application.
- olca-app-build: contains the build scripts for compiling openLCA and creating the installers for Windows, Linux, and MacOS.
- olca-app-html: contains the HTML and JavaScript source code for the HTML views in openLCA (like the start page or the report views).
- olca-app-runtime: contains the build scripts for creating the Eclipse RCP runtime for openLCA.
See also the README files that are contained in these sub-projects.
To compile openLCA you need to have the following tools installed:
- a Java Development Kit 8
- Maven
- the current Eclipse Standard package
You can then build openLCA from source code with the following steps:
-
Compile and install the the openLCA modules into your local Maven repository as described in the README file of the olca-modules project.
-
Download this repository and import the projects of this repository into your Eclipse workspace (File/Import/Import existing projects).
-
Run the ANT script olca-app-runtime/build.xml that will download and prepare the Eclipse runtime for openLCA. Then open the file olca-app-runtime/platform.target and click on 'Set as target platform'.
-
Run the script
update_modules.bat
orupdate_modules.sh
(this will copy/update the olca-modules in the olca-app folder) and refresh your Eclipse workspace (via F5). -
Finally, open the file olca-app/openLCA.product and click on the run icon. openLCA should now start.
If you want to build an installable product, see the description in the olca-app-build sub-project or simply use the Eclipse export wizard (Export/Eclipse product).
Unless stated otherwise, all source code of the openLCA project is licensed under the Mozilla Public License, v. 2.0. Please see the LICENSE.txt file in the root directory of the source code.