'Eclipse marvin classpath

I'll keep it short. I have a project in eclipse using Marvin, the Marvin's jar is added correctly in the build path, classpath. The problem is, whenever me or someone else exports the project from github and open it in eclipse they have to edit Marvin's Jar path in classpath or to re add it. I tried to search everywhere for a solution. Is there one? I don't know. Something like: new File("src/file.txt") And then using file.getAbsolutePath() and getting the entire path including the directory (D:\project\src\file.txt)



Solution 1:[1]

You can switch to an external build tool, like Maven or Gradle, that will download it for you on whatever machine you're on, or make your Java Build Path reference portable by using a classpath variable that you then manually assign on each Eclipse workspace.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 nitind