This is an automated email from the ASF dual-hosted git repository.
tjwatson pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/felix-atomos.git
The following commit(s) were added to refs/heads/master by this push:
new ecce585 Hint to use --add-modules=ALL-MODULE-PATH
ecce585 is described below
commit ecce5855e19d2758921ed9e7dd4f6ce949852a4a
Author: Thomas Watson <[email protected]>
AuthorDate: Thu May 5 11:08:55 2022 -0500
Hint to use --add-modules=ALL-MODULE-PATH
Without --add-modules=ALL-MODULE-PATH only the required modules for the
module specified with `-m` are loaded.
---
README.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 3fad5b7..df4fdcd 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,9 @@ The `Atomos` class provides a convenient way to launch an
OSGi framework impleme
The following `java` command can be run using the module path:
-`java -p bundles -m org.apache.felix.atomos`
+`java --add-modules=ALL-MODULE-PATH -p bundles -m org.apache.felix.atomos`
+
+Note that for module path usage the Java option
`--add-modules=ALL-MODULE-PATH` is used to enable all modules found in the
`bundles/` directory to be loaded into the Java module system.
In both cases Atomos will discover all the JARs contained in the `bundles/`
directory. For each bundle JAR included in `bundles/` the launcher will
install and start each bundle in an OSGi framework instance. The bundles are
loaded using the class loader provided by the JVM itself. In this case the
framework is not in control of the class loading for the bundles contained on
the class path or the module path.