FileChannel fchannel = null;
StringBuffer savePortPath = new StringBuffer();
+// savePortPath.append(InstallPathConfig.getUserDataPath())
+// .append(File.separatorChar).append(DANAIC_ANALYZER)
+// .append(File.separatorChar).append(SAVE)
+// .append(File.separatorChar).append(ACTIVE_DA_PLUGIN);
+
savePortPath.append(InstallPathConfig.getUserDataPath())
- .append(File.separatorChar).append(DANAIC_ANALYZER)
- .append(File.separatorChar).append(SAVE)
- .append(File.separatorChar).append(ACTIVE_DA_PLUGIN);
+ .append(File.separatorChar).append(DANAIC_ANALYZER)
+ .append(File.separatorChar).append(SAVE);
+
+ file = new File(savePortPath.toString());
+ if (!file.exists()) {
+ file.mkdirs();
+ }
+ savePortPath.append(File.separatorChar).append(ACTIVE_DA_PLUGIN);
+
file = new File(savePortPath.toString());
+
try {
fchannel = new RandomAccessFile(file, "rw").getChannel();//$NON-NLS-1$
} catch (FileNotFoundException e) {