Skip to content

AverseMoon/Quantum

Repository files navigation

Quantum - Very modular Java "runtime"

Quantum is a simple library designed to load jars (or what is internally called Modules).

If you run a compiled jar of Quantum, it will create a folder (./modules) where you can place compiled modules.

For example code go see /ExampleModule/

Usage Tutorial:

You will need:

  • A Quantum jar release, I will be using Quantum-1.0-BETA.jar
  • One or more modules, I will be using ExampleModule-1.0.jar (PS. Make sure the module is compatible with your Quantum version)
  • Java 17 or greater (older versions may work, I haven't tested them though)
  • A computer/laptop (not a phone or tablet), I will be using Windows 11 but the steps should be similar for Linux and Mac.

Step 0: Make sure you have the neccesary files

Quantum-1.0-BETA.jar and ExampleModule-1.0.jar in the same folder together

Step 1: Execute the Quantum jar

Double clicking on Quantum-1.0-BETA.jar

After a few seconds, a new folder named modules should pop up.

Step 2: Move your modules into the modules folder

Moving ExampleModule-1.0.jar into the modules folder

Your setup is complete!

To run your modules:

Just run the Quantum jar again! NOTE: To see the console/output you need to run it from the Command Prompt / Terminal using java -jar Quantum-1.0-BETA.jar