You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to add a Library in the main module [module-info.java]? #60
I believe you need to add our jar to the launch options....
java --module-path path/to/jssc-2.9.1.jar
As the stackoverflow article explains, modules are not for dependency management. Instead, they're used for modularity and can control scope and security. This article explains their purpose: https://www.baeldung.com/java-9-modularity
We use these directives to be much more explicit about how our code is to be used.
We could put the interface into a private package while exposing the implementation in a public package.
This makes our code much more secure with very little extra overhead.
Go ahead and try out some of the other directives to learn more about modules and how they work.
Alternately, you can always add the source code of JSSC into your project (e.g. as a subtree or submodule) and let your project compile the components as needed.
If you'd like to add any steps to the wiki to make this easier for others, please let us know. Closing as I don't think there's a bug here.
Activity
tresf commentedon Oct 22, 2019
I believe you need to add our jar to the launch options....
As the stackoverflow article explains, modules are not for dependency management. Instead, they're used for modularity and can control scope and security. This article explains their purpose: https://www.baeldung.com/java-9-modularity
This article explains how to combine modules with Maven: https://dzone.com/articles/java-9-modules-part-2-intellij-and-maven
Alternately, you can always add the source code of JSSC into your project (e.g. as a subtree or submodule) and let your project compile the components as needed.
If you'd like to add any steps to the wiki to make this easier for others, please let us know. Closing as I don't think there's a bug here.