Skip to content

java.lang.IllegalArgumentException: rxtx.native: Invalid module name: 'native' is not a Java identifier #157

@christianitis

Description

@christianitis

You can probably guess what the problem is here.
I am forced to modularize my project because I am using JavaFX, but I get this error:
Error occurred during initialization of boot layer java.lang.module.FindException: Unable to derive module descriptor for /home/user/.m2/repository/org/rxtx/rxtx-native/2.2/rxtx-native-2.2-linux_x86_64.jar Caused by: java.lang.IllegalArgumentException: rxtx.native: Invalid module name: 'native' is not a Java identifier
I realize this is probably an RXTX problem, but that repo hasn't been touched in around a decade so I don't expect a fix from them.
My module-info.java has requires xbee.java.library (obviously).
Does anyone have a workaround for this? The obvious answer is to make my project non-modular, but JavaFX requires modularity so I'm kinda stuck between a rock and a hard place here. I'm on Java 11.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions