« Return to Thread: JRE classes services from netbeans modules (NB6.1)

Re: JRE classes services from netbeans modules (NB6.1)

by Jesse Glick :: Rate this Message:

Reply to Author | View in Thread

Peter Blemel wrote:

> I have a jar that provides services for javax.sound (via
> META-INF/services). A little example main program (not in the jar
> file) invokes javax.sound classes that use the services.   Compiling
> the example with javac and running java from the command line works
> great.  The javax.sound classes use the services from the jar file.
>
> I created a wrapper module for the jar and put an action in a module
> to invoke the example.   It compiles just fine, but when it runs the
> javax.sound classes do not find / use the services from the wrapped
> jar file.

Perhaps the JavaSound impl looks for services only in the system class
loader.

 « Return to Thread: JRE classes services from netbeans modules (NB6.1)