This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes moving Netbeans classpath from network drive to local (C) drive Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "moving Netbeans classpath from network drive to local (C) drive" Watch "moving Netbeans classpath from network drive to local (C) drive" New topic
Author

moving Netbeans classpath from network drive to local (C) drive

Anne M Crace
Greenhorn

Joined: Aug 07, 2013
Posts: 7
I have already move the entire documents directory which includes my NetBeans project directory. I am hoping to find an easier way than editing all of the ant files. I am trying to work from home and would really prefer my Netbeans directory be local anyway because it's faster, and they manage to change the permissions on my H drive to Read Only causing my compilation problems. I have tried creating new project from existing source but Netbeans won't let me because the source is already tied to the other project. I am very hesitant to delete the existing project.
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3606
    
  60

If you have a full path stored somewhere in the build scripts or configuration, then you'll have to change them - I don't think there is any way to go around it. However, as these are text files and "H:\" will be pretty unique, just searching for all occurrences of H:\ and manually changing them shouldn't be that much work. However, I'd suggest to use relative paths instead of absolute ones in your project - that way if won't have to change the paths again the next time you move it.

You'd also be better off using a version control software, so that you'd be able to undo possible mistakes you might do. If you don't use version control right now, at least make a backup of your project before starting the changes.

If you encounter any specific problem while changing the paths, please post a more specific question.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: moving Netbeans classpath from network drive to local (C) drive
 
Similar Threads
creating a new project in eclipse from an existing web project
netbeans - error when project on drive D ?!?!
Why I stopped using Netbeans
Extending HttpServlet
Writing a File and Request Dispatcher Forward