Results 1 to 4 of 4
  1. #1
    Astralogic is offline Member
    Join Date
    Mar 2012
    Posts
    71
    Rep Power
    0

    Default Can't add a library to my build path.

    Hi, I am running into an error when I try to add commons-io-2.4.jar to my build path. I right click on the file (in the package explorer) and click on add to build path, but it says it can't write to the .classpath file.

    Does anyone have any ideas what's wrong?

    Thanks
    Astralogic

  2. #2
    eRaaaa is offline Senior Member
    Join Date
    Oct 2010
    Location
    Germany
    Posts
    787
    Rep Power
    6

    Default Re: Can't add a library to my build path.

    Crosspost? (Eclipse Community Forums: Newcomers » Can't add a library to my build path.)

    Is this a Windows 7 machine? Locate and select the .classpath file at the explorer -> right click and change the file attributes! You have to un-check the hidden-attribute, i think this will help and eclipse can write! (maybe you have to do this with all hidden files?!)

  3. #3
    Astralogic is offline Member
    Join Date
    Mar 2012
    Posts
    71
    Rep Power
    0

    Default Re: Can't add a library to my build path.

    Quote Originally Posted by eRaaaa View Post
    Crosspost? (Eclipse Community Forums: Newcomers » Can't add a library to my build path.)

    Is this a Windows 7 machine? Locate and select the .classpath file at the explorer -> right click and change the file attributes! You have to un-check the hidden-attribute, i think this will help and eclipse can write! (maybe you have to do this with all hidden files?!)
    Thanks, that solved it :)
    Astralogic

  4. #4
    orouit is offline Member
    Join Date
    Aug 2013
    Posts
    1
    Rep Power
    0

    Default Re: Can't add a library to my build path.

    This helped me as well.

    However I'm wondering why Eclipse can't write an Hidden file which is not read-only! This indicates a fundamental bug in their way of handling files.

    An hidden file in Windows file system is just hidden although you decide to see it in some folder properties. A correctly written application, like Notepad++ can write to an hidden file. That was in fact the test I did to verify that there was no other access issue, until I finally found this post.

    Generally hidden files are for basic users, an IDE shouldn't need to hide files from power users that are supposed to be developers (although I've seen recently a lot of developers who'd better don't touch a computer and specially a compiler! But that is another debate!

    It seems that Eclipse is not written properly when it comes to handling hidden files. This would be reasonable to correct that but as this post was originally in 2012 it looks like correction is a very slow process with Eclipse, after all it is free...

Similar Threads

  1. [Applet] Set java.library.path
    By Dennis in forum Advanced Java
    Replies: 5
    Last Post: 02-21-2011, 01:12 PM
  2. I want to put the native library in library path in mac os x
    By Hussain Ali in forum Advanced Java
    Replies: 2
    Last Post: 02-24-2010, 07:55 AM
  3. setting class-path & Library Path in ubantu
    By programmer_007 in forum Eclipse
    Replies: 18
    Last Post: 02-22-2010, 12:31 PM
  4. Replies: 6
    Last Post: 09-11-2009, 12:34 AM
  5. [SOLVED] SVN project's build path problem
    By er_zhong in forum Eclipse
    Replies: 0
    Last Post: 04-14-2009, 04:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •