gips-examples/org.emoflon.gips.gipsl.examples.headlessrunner
2024-04-03 10:19:23 +02:00
..
.settings Adds a simple model + simple GIPSL specification 2022-12-14 11:41:37 +01:00
META-INF MANIFEST changes: JDK17 + new formatter 2023-02-23 16:09:09 +01:00
scripts Adds scripts for running + gitignore 2022-12-14 12:14:42 +01:00
src/org/emoflon/gips/gipsl/examples/headlessrunner Adds missing termination calls for the GIPS APIs 2024-04-03 10:19:23 +02:00
.classpath Adds a simple model + simple GIPSL specification 2022-12-14 11:41:37 +01:00
.project Adds a simple model + simple GIPSL specification 2022-12-14 11:41:37 +01:00
build.properties Adds a simple model + simple GIPSL specification 2022-12-14 11:41:37 +01:00
README.md Adds doc for the headless example 2022-12-14 12:24:21 +01:00

GIPS headless runner example

Steps to run the example (headlessly):

  • Import both projects into a GIPS runtime workspace:
    • org.emoflon.gips.gipsl.examples.headlessrunner
    • org.emoflon.gips.gipsl.examples.headlessrunnermodel
  • Build the projects and check if any problems occur on the console.
  • Run the method main(...) of the class org.emoflon.gips.gipsl.examples.headlessrunner.runner.HeadlessRunner.java
    • Important: This is exptected to fail! Eclipse needs to know the run configuration in order to export it later.
  • Export the JAR file
    • Click on File -> Export
    • Choose Java -> Runnable JAR file
    • Click Next
    • Choose the Launch Configuration: HeadlessRunner - org.emoflon.gips.gipsl.examples.headlessrunner
    • Choose the Export destination to be gips-examples/org.emoflon.gips.gipsl.examples.headlessrunner/scripts
    • Library handling must be set to Package requzired libraries into generated JAR
    • Click Finish
    • (Ignore the upcoming warnings regarding the JAR export; it contains some Java code warnings from the projects.)
  • Run the JAR file
    • Navigate/Open a console to the folder gips-examples/org.emoflon.gips.gipsl.examples.headlessrunner/scripts
    • Adjust the data in env.sh to match your Gurobi installation
      • export GRB_LICENSE_FILE
      • export GUROBI_HOME
      • export LD_LIBRARY_PATH
    • Finally run the Jar file with $ ./start.sh