| 1 | For compiling Java code with MUSCLE, the Java archives in {{{$MUSCLE_HOME/share/muscle/java}}} and {{{$MUSCLE_HOME/share/muscle/java/thirdparty}}} should be added to the classpath. MUSCLE automatically includes these in the class path when running. To get these files formatted as a classpath, run |
| 2 | {{{ |
| 3 | muscle2 --print-env=CLASSPATH |
| 4 | }}} |
| 5 | |
| 6 | Modify the classpath of MUSCLE to add your own dependencies by adding the following lines to the configuration files |
| 7 | {{{ |
| 8 | m = Muscle.LAST |
| 9 | m.add_classpath "path/to/dependency1.jar" |
| 10 | m.add_classpath "path/to/dependency2.jar" |
| 11 | }}} |
| 12 | |
| 13 | The INCLUDE_PATH for C and C++ should include {{{$MUSCLE_HOME/include}}}, and the library path should include {{{$MUSCLE_HOME/lib}}}, specifically the {{{$MUSCLE_HOME/lib/libmuscle2.so}}} or {{{$MUSCLE_HOME/lib/libmuscle2.dylib}}} (depending on the operating system). |