Не удается собрать пакет OSGi для приложения Netbeans RCP

Когда я пытаюсь собрать OSGi-пакет RCP-приложения Netbeans (например, предоставленный пример приложения Feed Reader), выдается следующая ошибка:

[error] Exception in thread "main" /opt/developer/netbeans-8.0/harness/suite.xml:545: The following error occurred while executing this line:
[error] /opt/developer/netbeans-8.0/harness/osgi.xml:63: Could not prescan /opt/developer/netbeans-8.0/platform/modules/org-netbeans-libs-javafx.jar:
java.io.IOException: Unrecognized constant pool tag 18 at index 18; running UTF-8 strings: blah blah blah ...

Окружающая среда:

  • Debian Джесси
  • JDK1.8.0_45

person Richard Gomes    schedule 21.06.2015    source источник


Ответы (1)


Оказывается, виноват JavaFX.

Вы можете отключить модуль JavaFX Wrapper, как показано ниже:

Projects/Feed Runner Application
  -> Properties
    -> Libraries
      -> (platform)
        -> (JavaFX wrapper)   [ ] included  (i.e: not included!)

https://netbeans.org/bugzilla/show_bug.cgi?id=250440

person Richard Gomes    schedule 21.06.2015