Kotlin and OSMORC: errors

Answered

Hello,

   I'm very new to Intellij Idea, and I'm trying to "import" Kotlin in an OSGi project of ours. All is well in Eclipse, but Kotlin plugin is absolutely not in par with the one in Idea. I tried to fiddle a bit with OSMORC, but I stopped very early.

I could live with the basic OSMORC support to specifying manifest attributes (Import/Export-Packages), but when I try to start a run configurations, it complains that kotlin-reflect cannot be started:

java.net.MalformedURLException: unknown protocol: r
[...]
Error: Command "-install [...]\OSGITest\out\production\bundles\kotlin-stdlib-jre8.jar" failed, Failed to install bundle: java.net.MalformedURLException: unknown protocol: r

Now, in the out/ directory there are indeed those jars, but I can't figure why they are started, or where in the settings it's told to Knopflerfish to start them. I tried to add in the Module libraries the correct bundle (kotlin-osgi-bundle-X.X.X.jar) as stated here, but they stay there, and the latter isn't imported.

I'm baffled. Is OSGi such a "corner case" in the Java world? It seems really difficult to get any information on supporting it in Idea.

0
2 comments
Avatar
Permanently deleted user

the path begins with R:, so this is the reason of "unknown protocol: r". Also, I found this is a message by Knopflerfish; it may be solved adding a "file://" before the path. But I can't find how to do it in OSMORC, I can't even find where it lists the system bundles it starts.

0

Could you please file a bug at https://youtrack.jetbrains.com/issues/KT and attach a small sample project to reproduce?

0

Please sign in to leave a comment.