moving Netbeans classpath from network drive to local (C) drive
Anne M Crace
posted 2 years ago
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.
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.