문제

Possible Duplicate:
Any way to “reboot” the JVM?

I added tools.jar in our JRE /lib/ext folder and I need to do a JVM reboot under windows. Is that possible without restarting the server?

도움이 되었습니까?

해결책

I added tools.jar in our JRE /lib/ext folder ...

That is a bad idea. If you need to use stuff in 'tools.jar' you should be installing a JDK, not hacking a JRE installation.

... and I need to do a JVM reboot under windows. Is that possible wihtout restarting the server?

Ermm ...

If you are asking if it is possible to restart the application / server JVM without restarting the entire operating system, of course it is!

If you are asking if you need to restart the JVM to get it to see new stuff in '/lib/ext', then the answer is yes. The JVM reads that directory on startup and won't notice files that are written there while it is running.

If you are asking how a JVM can reboot itself, see the linked question.

If you are asking how to restart the JVM / service from the outside, the answer is (probably) via the Windows service control GUI ... depending on which version of Windows you are using. (And that's not a programming question ...)

다른 팁

Server process typically runs on top of Java Runtime inside JVM. even if you succeed to re-boot JVM OR killing the Java process will result in the server process to terminate.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top