Eclipse Access Restriction Error

When in Eclipse you have an error like: “Access restriction: The constructor AppletAudioClip(URL) is not accessible due to restriction on required library C:\Programmi\Java\jdk1.6.0_24\jre\lib\rt.jar” You simply need to follow these steps to avoid compilation error: Click on the Properties of your project Go to Java Compiler–>Errors/Warnings search for “Deprecated and Restricted API” and set to warning […]

Delete Files Older Than X Days on Linux

The find utility on linux allows you to pass in a bunch of interesting arguments, including one to execute another command on each file. We’ll use this in order to figure out what files are older than a certain number of days, and then use the rm command to delete them. Command Syntax find /path/to/files* -mtime […]

Java – Single Application Instance

If you want to prevent the user from running multiple copies of your Java application here are two approaches I could suggest you: 1) You can verify if a busy file exist. If one exists, abort. If not create one.  The process to test and create the file can be developed in the script file […]