Updating .classpath content in eclipse

I downloaded an eclipse project that has a .classpath that has class entries that need to be updated.

What does it do? Can I change the contents of .classpath in eclipse?

I opened User Libraries in eclipse, expecting it to have the same content as .classpath, but there is nothing in it.

enter image description here

+4
source share
2 answers

The contents of the .classpath file can be modified by changing the Java Build Path project settings.

For example, in the Package Explorer, right-click the project and select Properties ... In the Properties dialog box, navigate to the Java Build Path in the tree. Typically, the Source and Libraries tabs provide most of the information in a .classpath file.

+4
source

.classpath stores metadata information about the project path.

There are two ways to change it: 1. Through the interface: right-click the project → build a path, change here, and you will see the changes in .classpath

2. (not recommended): edit the .classpath file, be careful as a small corrupt project with an error. Edit, save, then create / update. You should see it updated in the ui build path. If not, restart eclipse, it will select a new .classpath.

+1
source

Source: https://habr.com/ru/post/1435978/


All Articles