fipro78 opened a new issue, #51:
URL: https://github.com/apache/felix-atomos/issues/51

   I am trying to setup a simple example to better understand how Atomos can be 
used. The example looks similar to the example showed in the README, it just 
uses the most current versions of Equinox/Felix and I of course had to build 
Atomos locally, which makes it a 1.0.1-SNAPSHOT. I created setups for Equinox 
and Felix as the underlying OSGi framework.
   
   Using the classpath variant both examples work fine.
   Using the module path variant none of the examples is working.
   
   For Equinox (org.eclipse.osgi-3.17.200.jar) I get the following exception:
   
   ```
   java.lang.ClassNotFoundException: sun.misc.Unsafe
           at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
           at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
           at java.base/java.lang.Class.forName0(Native Method)
           at java.base/java.lang.Class.forName(Class.java:315)
           at 
[email protected]/org.eclipse.osgi.internal.url.MultiplexingFactory.<clinit>(MultiplexingFactory.java:61)
           at 
[email protected]/org.eclipse.osgi.storage.FrameworkExtensionInstaller.findAddURLMethod(FrameworkExtensionInstaller.java:62)
           at 
[email protected]/org.eclipse.osgi.storage.FrameworkExtensionInstaller.<clinit>(FrameworkExtensionInstaller.java:55)
           at 
[email protected]/org.eclipse.osgi.storage.Storage.<init>(Storage.java:222)
           at 
[email protected]/org.eclipse.osgi.storage.Storage.createStorage(Storage.java:184)
           at 
[email protected]/org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:108)
           at 
[email protected]/org.eclipse.osgi.launch.Equinox.<init>(Equinox.java:53)
           at 
[email protected]/org.eclipse.osgi.launch.EquinoxFactory.newFramework(EquinoxFactory.java:35)
           at 
[email protected]/org.apache.felix.atomos.impl.base.AtomosBase.newFramework(AtomosBase.java:442)
           at 
[email protected]/org.apache.felix.atomos.Atomos.main(Atomos.java:236)
   ```
   
   For Felix (org.apache.felix.framework-7.0.3.jar) the felix-cache is created, 
but then nothing happens. The application does actually not start.
   
   I attach the two examples as archive that contain also the start calls in 
Windows batch files.
   
   
[atomos_felix.zip](https://github.com/apache/felix-atomos/files/8631600/atomos_felix.zip)
   
[atomos_equinox.zip](https://github.com/apache/felix-atomos/files/8631630/atomos_equinox.zip)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to