Search code examples
javabluej

Is resetting of JVM same as termination of JVM in BlueJ?


In BlueJ whenever I run a class I find I small button at the bottom of the project window labelled "reset Java Virtual Machine". Shown below:

Reset Java Virtual Machine Button


Solution

  • "Resetting" the JVM actually terminates the current JVM, and then starts a new JVM to take its place. Note that this option is available whether or not you are currently running any code. It always removes all objects from the object bench, resets static variable values (due to the classes being re-loaded), and closes any windows opened by user code in the user JVM.

    (I am one of the BlueJ developers).