Restarting JVM with BASIC function

Hello,
I would like to restart the JVM with a BASIC function like this:

FUNCTION rebootJVM()
PRINT “Restarting now JVM…”
REQUESTHTTPX “http://192.168.250.53/rcgi.bin/jvmCmd?cmd=start&runCmd=%20-heapsize%2012M%20-classpath%20/usr/MQTT_EWON.jar%20-emain%20MainClass","GET
ENDFN

Executing this function in the BASIC IDE doesn’t restart the JVM, although pasting above URL into a browser causes the JVM to restart fine. How to make this function work ?

Thanks

Sorry for the delay. Were you able to solve this?

If not, what do the logs show?

No, I still haven’t found a way to restart the JVM.
As you can see in my above script, it isn’t logging anything. Real time log isn’t telling anything useful other than:
[INFO] Run
[INFO] Stop
Is there another log which I can consult?

I am surprised that one can restart the whole ewon with the java RuntimeControl.reboot() call, but there is no function to call for restarting the JVM?? I need to restart the JVM without rebooting the whole ewon. How can I achieve this? (through java preferably over BASIC).

There is no direct method to reboot the JVM but there is a workaround using the configureNextRunCommand from the com.ewon.ewonitf.RuntimeControl class. The java program has first to exit for the method to take effect.

Here is a script that you can use from Simon at Ewon:

JavaMonitor.txt (1.8 KB)