No. The felix framework is only a single jar. Any other jars that happen to
have felix in their name are just bundles.

I’ll have to let Karl or another felix insider comment on your second
question. It would need to be clarified though since “conform to” could
mean any number of things.

Neil.

On Mon, 18 Feb 2019 at 18:39, Chuck Davis <[email protected]> wrote:

> So ALL the Felix jars go on the classpath not just felix.jar?  I'll
> experiment with that.  Thanks much for the assist.
>
> That begs the question then, when will Felix conform to jdk9+ modules?  I
> have an OpenJDK11/OpenJFX11 application I want to distribute as a
> self-updating application to the end-users.
>
> On Mon, Feb 18, 2019 at 10:31 AM Neil Bartlett <[email protected]>
> wrote:
>
> > It looks like you are still running with Felix on the modulepath rather
> > than the classpath. This is the giveaway from the output you showed:
> >
> > 'module java.base does not "opens java.net" to module
> > org.apache.felix.framework
> >         at [email protected]'
> >
> > In other words, Java thinks that Felix is a module.
> >
> > Put Felix on the classpath and it should work.
> >
> > Regards,
> > Neil
> >
> >
> > On Mon, Feb 18, 2019 at 6:23 PM Chuck Davis <[email protected]> wrote:
> >
> > > Didn't make any difference.  Still getting the following exception with
> > > felix.jar on the classpath:
> > >
> > > chuck@linux-hk84:~> ./startJFXFelix
> > > The framework class is: org.apache.felix.framework.Felix
> > >                    <-- my class output
> > > loaded bundle: org.apache.felix.framework which is bundle number: 0
> > >                <-- my class output
> > > Exception in thread "main" java.lang.ExceptionInInitializerError
> > >         at [email protected]
> > >
> > >
> >
> /org.apache.felix.framework.URLHandlers.createURLStreamHandler(URLHandlers.java:513)
> > >         at java.base/java.net.URL.getURLStreamHandler(URL.java:1415)
> > >         at java.base/java.net.URL.<init>(URL.java:633)
> > >         at [email protected]
> > >
> > >
> >
> /org.apache.felix.framework.util.SecureAction.createURL(SecureAction.java:256)
> > >         at [email protected]
> > >
> > >
> >
> /org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:148)
> > >         at [email protected]
> > >
> /org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:76)
> > >         at [email protected]
> > >
> > >
> >
> /org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:799)
> > >         at [email protected]
> > >
> > >
> >
> /org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:480)
> > >         at [email protected]
> > >
> > >
> >
> /org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:148)
> > >         at [email protected]
> > >
> >
> /org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:462)
> > >         at [email protected]
> > > /org.apache.felix.framework.Felix.installBundle(Felix.java:3227)
> > >         at [email protected]
> > >
> > >
> >
> /org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:147)
> > >         at [email protected]
> > >
> > >
> >
> /org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:120)
> > >         at
> > > JFXFelix/com.yakridge.jfxfelix.JFXMain.someNewMethod(JFXMain.java:65)
> > >         at JFXFelix/com.yakridge.jfxfelix.JFXMain.main(JFXMain.java:30)
> > > Caused by: java.lang.RuntimeException: Unable to make protected boolean
> > > java.net.URLStreamHandler.equals(java.net.URL,java.net.URL)
> accessible:
> > > module java.base does not "opens java.net" to module
> > > org.apache.felix.framework
> > >         at [email protected]
> > >
> > >
> >
> /org.apache.felix.framework.URLHandlersStreamHandlerProxy.<clinit>(URLHandlersStreamHandlerProxy.java:104)
> > >         ... 15 more
> > > Caused by: java.lang.reflect.InaccessibleObjectException: Unable to
> make
> > > protected boolean
> > > java.net.URLStreamHandler.equals(java.net.URL,java.net.URL)
> accessible:
> > > module java.base does not "opens java.net" to module
> > > org.apache.felix.framework
> > >         at
> > >
> > >
> >
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:340)
> > >         at
> > >
> > >
> >
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:280)
> > >         at
> > >
> java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:198)
> > >         at
> > > java.base/java.lang.reflect.Method.setAccessible(Method.java:192)
> > >         at [email protected]
> > >
> > >
> >
> /org.apache.felix.framework.util.SecureAction.setAccesssible(SecureAction.java:871)
> > >         at [email protected]
> > >
> > >
> >
> /org.apache.felix.framework.URLHandlersStreamHandlerProxy.<clinit>(URLHandlersStreamHandlerProxy.java:79)
> > >         ... 15 more
> > >
> > >
> > > On Mon, Feb 18, 2019 at 9:39 AM Karl Pauls <[email protected]>
> wrote:
> > >
> > > > right, as I said, you need to put the felix jar on the classpath -
> then
> > > it
> > > > should work.
> > > >
> > > > regards,
> > > >
> > > > Karl
> > > >
> > > > On Monday, February 18, 2019, Chuck Davis <[email protected]>
> wrote:
> > > >
> > > > > I start my main class with the following bash script:
> > > > >
> > > > > java --module-path
> > > > > /sata2/modules:/sata2/modules/felix:/sata2/Downloads/javafx/
> > > > > javafx-sdk-11.0.1/lib
> > > > > --add-modules=ALL-MODULE-PATH com.yakridge.jfxfelix.JFXMain
> > > > > If I comment out all the Felix stuff the program runs fine.  My
> main
> > > > class
> > > > > is on the classpath.  The felix bundles are in /sata2/modules
> > > directory.
> > > > >
> > > > >
> > > > > On Mon, Feb 18, 2019 at 8:00 AM Karl Pauls <[email protected]>
> > > wrote:
> > > > >
> > > > > > How do you start this main class (and/or, are you embedding felix
> > in
> > > a
> > > > > > module)?
> > > > > >
> > > > > > You need to be on the classpath and not on the module path to
> work.
> > > > > >
> > > > > > regards,
> > > > > >
> > > > > > Karl
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Karl Pauls
> > > > [email protected]
> > > >
> > >
> >
>

Reply via email to