View on GitHub

README

Some useful information about this site!

How to use a Java library from Eurostat/github

This page describes a quick way to start using one of the Java libraries proposed on Eurostat Github space such as JGiscoTools or Java4Eurostat.

1- Create a Java project (with Eclipse)

package MyApplication

public class MyApplication {

  public static void main(String[] args) {
    System.out.println("Hello Europe !");
  }

}

2- Use the tool

Edit the pom.xml file located at the base of the project folder. This file describes your application, including its dependencies. To indicate the application uses the tool, include the following <dependencies> section:

<project (...) >
  (...)

  <dependencies>
    <dependency>
      <groupId>eu.europa.ec.eurostat</groupId>
      <artifactId>MY_TOOL</artifactId>
      <version>X.Y</version>
    </dependency>
  </dependencies>

</project>

where MY_TOOL is the name of the tool and X.Y its last version as it appears in Maven central repository.

Hit F5 and Alt+F5 to refresh the project. It should then be possible to use the tool in the main function of the application. You could start with the code snippets usually proposed in the tool documentation.

Feedback

Something missing, not clear, outdated or wrong on this page? Feel free to report it.