MobMonRob / DSL4GeometricAlgebra

DSL for Geometric algebra with Java
Apache License 2.0
2 stars 1 forks source link

Including EuclidView3D into the runtime dependencies for 3d viewing breaks execution #6

Closed orat closed 1 month ago

orat commented 1 month ago

oliver@T15:~/JAVA/PROJECTS/DSL4GeometricAlgebra$ ./ga -lsp dummy.ocga Error occurred during initialization of boot layer java.lang.module.FindException: Unable to derive module descriptor for /home/oliver/JAVA/PROJECTS/DSL4GeometricAlgebra/DSL4GA_Standalone/target/modules/jzy3d-native-jogl-swing.jar Caused by: java.lang.IllegalArgumentException: jzy3d.native.jogl.swing: Invalid module name: 'native' is not a Java identifier

jzy3d creates jar-files with "native" in the filename. If these jar-files are included in the classpath exceptions as follow are thrown, e.g. :

java.lang.module.FindException: Unable to derive module descriptor for /home/oliver/JAVA/PROJECTS/DSL4GeometricAlgebra/DSL4GA_Standalone/target/modules/jzy3d-native-jogl-swing.jar Caused by: java.lang.IllegalArgumentException: jzy3d.native.jogl.swing: Invalid module name: 'native' is not a Java identifier

I assume the that usage of any reserverd keywords, see

https://docs.oracle.com/javase/specs/jls/se7/html/jls-3.html#jls-3.9

produces similar problems.

The principal problem is described also e.g.

https://github.com/oracle/graal/issues/4620

or

https://stackoverflow.com/questions/46501388/unable-to-derive-module-descriptor-for-auto-generated-module-names-in-java-9