run-as-root
run-as-root copied to clipboard
Unable to add to module-info.java
I would like to use this library in a JavaFX project. I am using IntelliJ with the default JavaFX template.
I add the library to module-info.java
like this:
requires run.as.root;
When I run the program, it compiles but then it outputs this:
Error occurred during initialization of boot layer
java.lang.module.FindException: Module run.as.root not found, required by me.hipposgrumm.myapp
I have the module imported like this in build.gradle
:
dependencies {
implementation('org.controlsfx:controlsfx:11.1.1')
implementation('com.github.dyorgio.runtime:run-as-root:1.2.3')
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
}
I'm using Java 17.0.2 and have already looked online (to no avail). If I've forgotten to include anything I'll provide it and if you don't know then just let me know so that I can look for a solution elsewhere. (And sorry if I come off as rude.)