The JAS-mine platform‎ > ‎Documentation‎ > ‎Tutorials‎ > ‎

How to update JAS-mine

1. Using Apache Maven

The easiest way to update the JAS-mine libraries in your project is to use Apache Maven. Maven now comes pre-installed with Eclipse (since version Luna), so open the pom.xml file in Eclipse and go to the Dependencies tab. Select the libraries to update. Click on the Manage button.


The dependency will now display on the right column, under the “Dependency Management” heading:


Select it, and click on the Properties button. Then, update the version and press OK.


You should now see the new version of the JAS-mine library in the dependencies list:

To update the .jars in the project, you may have to get Maven to update them.  This is done by right clicking on the project in Eclipse's 'Package Explorer' window, then choosing the 'Maven / Update Project' menu, as in the screenshot below.  Click OK on the window that pops up, and Maven should automatically download the new JAs-mine libraries and add them to the project.

2. Manual update

An alternative and more involved way to update the JAS-mine libraries is to manually update an existing project to a new version of JAS-mine.  This is done by manually downloading the new JAS-mine-core-with-dependencies and JAS-mine-gui-with-dependencies .jar files from the JAS-mine download area, and referring to them in your project. In order to do it, right-click on the project you want to update. Select Properties, then go to the Java Build Path tab on the vertical menu and on the Libraries tab on the horizontal menu. Select the old JAS-mine .jars, and remove them.  After removal, no JAS-mine libraries should be present in the Libraries tab, as in the screenshot below:


After downloading the JAS-mine libraries (choose the ones 'with-dependencies'), copy these files to the 'libs' folder in the Eclipse project (create a 'libs' folder if there isn't one in the project).  Then select both JAS-mine .jar files and right click, select 'Build Path / Add To Build Path':


You can check the JAS-mine .jars are on the build path by right-clicking on the project and selecting 'Build Path / Configure Build Path'.  Check the new .jars are there in the Libraries tab.  Note that Eclipse should no longer show any Errors in your project related to missing JAS-mine classes.  You should see the following:

3. JAS-mine plugin for Eclipse

To create new JAS-mine projects with the most updated version of the JAS-mine libraries, you have to update the JAS-mine plugin for Eclipse. Go to the Help/Check for updates menu. If an update is available, you will get something similar to the following pop-up (though perhaps with a later version number):


Accept the license agreement, and disregard following warning which is common for many plugins for Eclipse IDE:

and install the update. Restart Eclipse and you are done.