Any way to “reboot” the JVM?

后端 未结 8 1022
难免孤独
难免孤独 2020-12-05 17:46

Is there any way to reboot the JVM? As in don\'t actually exit, but close and reload all classes, and run main from the top?

8条回答
  •  青春惊慌失措
    2020-12-05 18:04

    IBM's JVM has a feature called "resettable" which allows you to effectively do what you are asking.

    http://publib.boulder.ibm.com/infocenter/cicsts/v3r1/index.jsp?topic=/com.ibm.cics.ts31.doc/dfhpj/topics/dfhpje9.htm

    Other than the IBM JVM, I don't think it is possible.

提交回复
热议问题