RuntimeClassLoader is a useful utility library for interacting with an inaccessible environment in Java.
At the moment, the library supports the following OS and Java Environment:
Supported OS | Windows 10 / 11, Linux (not sure), Mac OS (not sure) |
Supported Java | SE JDK 8, 16, 17 |
<dependencies>
<dependency>
<groupId>ru.aslcraft</groupId>
<artifactId>runtimeclassloader</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
implementation 'ru.aslcraft:runtimeclassloader:1.0.0'
Show instructions
-
Download compiled lib from releases or just download sources and compile it-self
-
Create an instance of the
MavenURL
object and specify arguments based on their name (P.S. the default repository is Repository.Central): -
Create an instance of the
MavenClassLoader
object by specifying the created reference to the Maven library in the arguments: -
Then invoke the method
MavenClassLoader#loadClasses()
and wait for some time, while the libraries classes will be loaded:
Also, if necessary, you can catch an error when creating an instance of MavenClassLoader
: