import java.lang.Thread; public class ServerAlive extends ServernonStatic implements Runnable { public void run() { while(true) { System.out.println("30 Sek"); super.tojava.println("HELLOR"); try { Thread.sleep(30000); } catch (InterruptedException e) { } } } }