-
Notifications
You must be signed in to change notification settings - Fork 56
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
java.lang.IllegalArgumentException: rxtx.native: Invalid module name: 'native' is not a Java identifier #157
Comments
First you need to install the libraries locally to your maven repository, because they are not in the online maven repository anymore:
On linux you also have to install the native library
Another problem for me is that the library is crashing on jdk11, it is because newer java versions only support 64 bit by default. The rxtx-library is crashing, because the default java 8 installation was 32 bit. You can install a java11 jdk from https://adoptopenjdk.net/releases.html with 32 bit to solve this problem. Another solution would be replacing the rxtx library with nrjavaserial, but this requires some work todo. That was everything for me to get it running on my machine. |
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.
The text was updated successfully, but these errors were encountered: