run-as-root icon indicating copy to clipboard operation
run-as-root copied to clipboard

Unable to add to module-info.java

Open Hipposgrumm opened this issue 10 months ago • 0 comments

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.)

Hipposgrumm avatar Apr 21 '24 20:04 Hipposgrumm