This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
}
/** Get the server startup timeout in milliseconds */
private long getStartupTimeout() {
long getStartupTimeout() {
return getTimeout(InstanceProperties.STARTUP_TIMEOUT, DEFAULT_TIMEOUT);
} finally {
instance.removeStateListener(sl);
// TODO whole this thing would deserve a better solution
long start = System.nanoTime();
while (!instance.isReallyRunning()
&& instance.getStartupTimeout() < ((System.nanoTime() - start) / 1000000)) {
try {
Thread.sleep(100);
} catch (InterruptedException ex) {
Thread.currentThread().interrupt();
// proceed to exit
break;
case RUN: {