This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
} else if (Utilities.getOperatingSystem() == Utilities.OS_VMS) {
file = normalizeFileOnVMS (file);
//On VMS, the case of the JRE classpaths returned from System.property
//isn't necessary consistent with the case of the JRE files on the physical
//disk. So we look up the directory and fix the case of the classpaths.
private static File normalizeFileOnVMS (File file) {
String path = file.getAbsolutePath();
//First, take out the 000000
String nPath = path.replaceAll("/000000","");
//Now fix the cases of each files and directories
//by comparing against the native filesystem
StringBuffer newPath = new StringBuffer();
String[] stok = nPath.split("/");
//Do the File.list of each directory from the root
//to find the correct case of each sub files/directories and construct
//a new path
for(int i=0; i<stok.length; i++) {
if(stok[i].length() == 0)
continue;
newPath.append(File.separatorChar + stok[i]);
File f = new File(newPath.toString());
if (f.isDirectory()) {
String [] files = f.list();
for (int j=0; j<files.length; j++) {
if ((i+1) < stok.length && files[j].equalsIgnoreCase(stok[i+1])) {
stok[i+1] = files[j];
break;
}
return new File(newPath.toString());
--