Subodh Joshi
Subodh Joshi

Reputation: 13482

Eclipse project .classpath can delete/change manually?

Eclipse created .classpath for all the project in work-space. It can be any bad effect if we delete it or manually change ? In my project it have a entry like this

<classpathentry kind="var" path="M2_REPO/org/jboss/resteasy/resteasy-client/3.0.8.Final/resteasy-client-3.0.8.Final.jar" sourcepath="M2_REPO/org/jboss/resteasy/resteasy-client/3.0.1.Final/resteasy-client-3.0.1.Final-sources.jar"/>

and manually i changed with some other version because i am using some new version but its referring old version. Will it make my project unstable or undeployble ?

Upvotes: 1

Views: 7476

Answers (3)

aios
aios

Reputation: 241

It depends on what BAD means to you. If you delete it eclipse wont know about source folders and dependencies. Your project structure will be lost. If project is configured with maven, it can restructured with mvn eclipse:eclipse command.

You can edit it if you know what are you doing.

Upvotes: 1

greg-449
greg-449

Reputation: 111142

Use the Project 'Properties > Java Build Path' to alter the .classpath file.

Deleting this file will loose all your class path settings.

Upvotes: 2

DanielVL
DanielVL

Reputation: 249

Its config file for Eclipse. The best is change config throught eclipse UI. But no problem if you change this file, while the change has well structured and well data.

Best regards.

Upvotes: 0

Related Questions