Skip to content

A simple Java project designed to wrap existing projects and enable auto-updates during runtime

Notifications You must be signed in to change notification settings

ethanjcohen/autoupdate

Repository files navigation

Java Auto Update

A simple Java project designed to wrap existing projects and enable auto-updates at runtime. The program dynamically loads a specified class file, as well as any referenced classes, and starts up that class. This is designed to be a working, simple example, not robust, production-ready code.

Main.java starts the auto-update controller. From here, you can configure the location of your .class files, as well as the project's main class to load and start up.

For each auto-update, the controller does the following:

  1. Execute .stop() on the loaded class
  2. Reload the main class
  3. Execute .start() on the loaded class
```java final AutoUpdateController autoUpdate = new AutoUpdateController(); autoUpdate.setClassLocation(classLocation); autoUpdate.setMainClass("com.testautoupdate.myserver");

autoUpdate.start();

About

A simple Java project designed to wrap existing projects and enable auto-updates during runtime

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published