Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error occurred during initialization of boot layer #17

Open
EasyG0ing1 opened this issue Oct 14, 2021 · 0 comments
Open

Error occurred during initialization of boot layer #17

EasyG0ing1 opened this issue Oct 14, 2021 · 0 comments

Comments

@EasyG0ing1
Copy link

Hello,

After including this library in my Java 16 project (using IntelliJ), as soon as I add requires com.jthemedetector; to my module-info.java file, I don't even need to try and include the library in a class at all ... just put that one line in the module file and I get this error during the build process:

Error occurred during initialization of boot layer
java.lang.module.ResolutionException: Modules org.apache.commons.collections4 and org.jetbrains.annotations export package org.jetbrains.annotations to module com.sun.jna

And I don't know how to fix it. I'm fairly new with modularized java so I'm kind of at a loss as to what to do... the error is not informative enough - at least for me - to give me a solid direction to go in for correcting the problem.

My pom file has the following:

    <repositories>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>
    <dependencies>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-controls</artifactId>
            <version>16</version>
        </dependency>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-fxml</artifactId>
            <version>16</version>
        </dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-api</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-engine</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>8.0.22</version>
        </dependency>
        <dependency>
            <groupId>com.simtechdata</groupId>
            <artifactId>Switcher</artifactId>
            <version>9.8.7</version>
        </dependency>
        <dependency>
            <artifactId>CustomControls</artifactId>
            <groupId>com.simtechdata</groupId>
            <version>1.1</version>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.8.0</version>
        </dependency>
        <dependency>
            <groupId>com.dustinredmond.fxtrayicon</groupId>
            <artifactId>FXTrayIcon</artifactId>
            <version>3.0.1</version>
        </dependency>
        <dependency>
            <groupId>org.fuin</groupId>
            <artifactId>utils4j</artifactId>
            <version>0.10.1</version>
        </dependency>
        <dependency>
            <groupId>org.controlsfx</groupId>
            <artifactId>controlsfx</artifactId>
            <version>11.1.0</version>
        </dependency>
        <dependency>
            <groupId>com.github.Dansoftowner</groupId>
            <artifactId>jSystemThemeDetector</artifactId>
            <version>3.7</version>
        </dependency>
        <dependency>
            <groupId>com.github.oshi</groupId>
            <artifactId>oshi-dist</artifactId>
            <version>5.8.2</version>
            <type>pom</type>
        </dependency>
    </dependencies>

and here is my module-info file

module com.simtechdata.vjuice2021 {
	requires javafx.controls;
	requires javafx.fxml;
	requires javafx.graphics;
	requires java.sql;
	requires Switcher;
	requires org.apache.commons.collections4;
	requires com.jthemedetector;


	opens com.simtechdata.vjuice2021 to javafx.fxml;
	exports com.simtechdata.vjuice2021;
}

Any ideas about what might the problem be?

Thank you,

Mike

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant