Skip to content

How to add a Library in the main module [module-info.java]? #60

@ghost

Description

I use the jssc package to access serial port. I added it to the main module

module DeskCheck {
  requires java.desktop;
  requires java.logging;
  requires jssc;
}

But I believe I am doing it wrong, because there is an error saying that module does not exist.

Creating jlink image in dist\jimage/.
Executing: C:\Program Files\jdk-12.0.2\bin\jlink.exe --module-path dist\DeskCheck.jar;C:\Program Files\jdk-12.0.2\jmods --add-modules DeskCheck --output dist\jimage --compress=2
Error: Module jssc not found, required by DeskCheck

Question taken from Stack Overflow in Portuguese:

https://pt.stackoverflow.com/questions/416758/como-adicionar-um-library-no-modulo-principal-module-info-java

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionSupport question, not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions