JFCM - Java Fuzzy Cognitive Maps

Navigation

If JFCM was beneficial to your activity, please consider making a donation via PayPal to demonstrate your appreciation and willing to support next developments.

The amount to donate is up to your choice. Thank you!

Support This Project

Download JFCM

JFCM releases are hosted on Sourceforge, the download page can be found here:

http://sourceforge.net/projects/jfcm/files/

Installation

To use JFCM in your project you must make library available in the classpath, i.e. jfcm-core-1.x.x.jar, where 1.x.x is the version number.

Using Ant

[TODO: add Ant instructions]

 

Using Maven - method 1: JitPack.io

jfcm-core is not yet hosted on Maven Central repository. An easy way to include it in your project is to use JitPack.io, an easy to use git package repository.

This is an example pom.xml for Maven:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>my.group.id</groupId>
    <artifactId>jfcm-example</artifactId>
    <version>1.0-SNAPSHOT</version>

    <repositories>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>com.github.megadix</groupId>
            <artifactId>jfcm</artifactId>
            <version>v1.4.2</version>
        </dependency>
    </dependencies>
</project>

 

Using Maven - method 2: install downloaded files into local repository

You can also install jfcm-core in your locale Maven repository:

  • download jfcm-core;
  • keep track of the version number: if the jar file you downloaded is named jfcm-core-1.4.1.jar, then the version number is 1.4.1;
  • install the library in your local Maven repository with this command:
mvn install:install-file -DgroupId=org.megadix.jfcm
  -DartifactId=jfcm-core -Dversion=CURRENT_VERSION -Dpackaging=jar
  -Dfile=PATH_TO_JAR

Where:

  • CURRENT_VERSION is the version number of the library (see above);
  • PATH_TO_JAR is the absolute path to the jar file.

Now add the correct dependency:

    <dependency>
      <groupId>org.megadix.jfcm</groupId>
      <artifactId>jfcm-core</artifactId>
      <version>1.4.1</version>
    <dependency>

in the <dependencies> section of your pom.xml file.

 

Using Maven - method 3: build and install from source code

The last method is to build and install from source code:

  • Maven 3.x is needed;
  • download the project distribution, it's the archive named jfcm-core-1.x.x-project.zip;
  • extract files on your computer;
  • run this command from project root:
    mvn install

After the build ("Build successful" message) you should have JFCM core installed in your repository.