0 Replies Latest reply on Apr 14, 2013 5:57 PM by ericC

    Auto Update Include Runtime After Bundle Image Deployment

      I would like to implement an auto software feature for javafx app bundle image (include the runtime) running on window 7. My idea is on the startup of javafx app, it checks the version and download new one to a folder, and then invoke an external batch file using Runtime.getRuntime().exec and the exit JVM right way. The batch file will delete the current image folder (include the runtime), and then copy over newer one. But the issue is that the batch file failed to delete the current image folder, it seems the JVM is still used for running the batch file. I even put the 10 seconds delay in the batch file before deleting, and it did not work.

      I would thought Runtime.getRuntime().exec will spawn an external process outside JVM?

      Any one has better idea for implementing this feature?

      Thank you in advance.