title: git - push java .classpath file?
body: <p>I have a small java project on which I work together with a friend. We both use eclipse with the egit plugin and github for version management. </p>
  
  <p>Besides the JRE library, we use the javafx and an RXTX library. As we both need the libraries, we put them in a lib folder in our project. Then we set up the .classpath to reference the libraries in our project and pushed the .classpath to github.</p>
  
  <p>At that point, we realized, that different computers need different libraries and that it may be a bad idea to have the .classpath file in the CVS.</p>
  
  <p>So my Question is, what is the best practice here? Having the .classpath file commited seems like a bad idea, however I want to have control over the libraries which are used in the project, therefore It might be a good Idea to provide the library jars with the other project files; someone who pulls the project can then easily add the jar for his system to the classpath. However, consequently I would have to provide the javafx and RXTX library for every system (win32, win64, linux, ...) , and that also does not seem like the best thing to do.</p>
  
  <p>I feel like this may have been asked already, however I could not find a satisfying question/answer for my problem.</p>