Tieni è un semplice thread...
se hai exe4j inoltre è implementato in modo tale che lo puoi usare anche come servizio windows...
codice:
public class EsecuzioneCiclica {
// ESECUZIONE PRINCIPALE DEL PROGRAMMA
public static void main(String[] args) {
Runnable r = new Runnable() {
public void run () {
Thread t = Thread.currentThread();
try {
Thread.sleep(1000); // SETTAGGIO DOVE METTI IL TEMPO DI ATTESA
} catch (InterruptedException e) {
e.printStackTrace();
}
// QUA METTI IL CODICE DOVE FAI FARE QUELLO CHE VUOI
}
};
(new Thread (r)).start();
}
}