File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Error while adding an external archieve Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Error while adding an external archieve" Watch "Error while adding an external archieve" New topic
Author

Error while adding an external archieve

raju sangam
Ranch Hand

Joined: Jun 19, 2007
Posts: 38
Hi All,
I'm working with Eclipse3.2.
When I am trying to add external files to my application. It gives error.
Reason: File/myappln/.classpath is read-only.

can any body resolve this issue would be appreciate.

Thanks in Advance,
Sangam
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

The .classpath file is created by eclipse and is used to keep track of the classpath needed to build your project in eclipse. Adding external files to a project tells eclipse it needs to add new entries to the classpath, and if the .classpath file *is* read-only, then eclipse can't write these new entries to the .classpath file.

The solution, change .classpath not to be read only. You can do this either through your OS, or through eclipse itself (but you'll have to open resource perspective, because .classpath is filtered out of the file-list by default in the Java view - Window -> Open Perspective -> Other... -> Resource -> OK; Right click the .classpath file in the Navigator tab -> Properties -> Uncheck "Read Only" -> OK).

Or there may be other reasons why .classpath is read only... was this project checked out from a version control system? If so, you need to "check out" the .classpath file first to allow your version control system to change it from "read only".


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error while adding an external archieve
 
Similar Threads
Environment Problem
Running code
How do i set a/the classpath.
permission denied while using ajax
redirect in a filter class