Skip to main content



      Home
Home » Archived » Visual Editor (VE) » Lockfile is created on opening a visual class using visual editor
Lockfile is created on opening a visual class using visual editor [message #615086] Fri, 23 February 2007 06:56
Eclipse UserFriend
Hi,

the following lines of code are in my visual class:

...
public static String lockfilename = "drucken-lock";
...

public void WriteLockFile() {
try {
FileWriter out = new FileWriter(lockfilename);
int cnt = 0;
out.write(cnt + ": " + "\n");
out.close();
}
catch (IOException e) {
System.out.println("Fehler: Datei " + e.toString());
}
}

If I open my class in eclipse using the visual editor a file
"drucken-lock" is written into the project folder. This file is empty (0
bytes) and locked by the system. Only after closing the editor pane is it
possible to delete the file.
If I open the same class in the eclipse java editor nothing happens.

Is there any solution to this? I can't execute my application inside
eclipse if this lock file exists beforehand.

Thank you
Igor
Previous Topic:Removing/Hiding Java Source Code Window in Visual Editor
Next Topic:Lockfile is created on opening a visual class using visual editor
Goto Forum:
  


Current Time: Sat Jun 21 18:42:46 EDT 2025

Powered by FUDForum. Page generated in 0.02321 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top