Skip to content

JRuby Jar comuptation fails in OSGi environment #8217

@glatuske

Description

@glatuske

Environment Information

Provide at least:

  • JRuby version: 9.4.7.0
  • Operating system and platform: Windows 10 64 Bit, OSGi with Equinox

Expected Behavior

  • JRuby should run in OSGi environment
  • Any kind of access to the classpath need to take OSGi into consideration

Actual Behavior

  • ClasspathLauncher expects a JAR classpath entry. In OSGi case this is a bundleresource (e.g. bundleresource://344.fwk257265217/org/jruby/Main.class).
  • Path.of fails with java.nio.file.FileSystemNotFoundException: Provider "bundleresource" not installed
  • Catching this exception and return null would be sufficient in our scenario.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions