cancel
Showing results for 
Search instead for 
Did you mean: 

JavaFX 11 and Eclipse issue

pawelwiejkut
Active Participant

Helo guys,

I have installed SAP GUI for Java version 7.50 rev 5 based on SapMachine 11 and OpenJFX 11, as described in https://launchpad.support.sap.com/#/notes/2751143. Same GUI works fine, but when I try to start the new transaction from eclipse I get an error. Do you maybe have any ideas about how to solve it?

  • Eclipse IDE for Java Developers
  • Version: 2018-12 (4.10.0)
  • Build id: 20181214-0600
  • javafx-sdk-11.0.2
  • sapmachine-jdk-11.0.2.jdk
  • macOS 10.14.3
/Applications/Eclipse\ Java.app/Contents/MacOS/eclipse ; exit;

org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.

org.eclipse.m2e.logback.configuration: Logback config file: /Users/pawelwiejkut/Documents/eclipse/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.10.0.20181127-2120.xml

SLF4J: Class path contains multiple SLF4J bindings.

SLF4J: Found binding in [bundleresource://464.fwk1075758996:1/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: Found binding in [bundleresource://464.fwk1075758996:2/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]

org.eclipse.m2e.logback.configuration: Initializing logback

Warning: NLS missing message: SOURCE_XFLD in: com.sap.ndb.studio.modeler.i18n.messages

Warning: NLS missing message: TARGET_XFLD in: com.sap.ndb.studio.modeler.i18n.messages

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by com.sap.platin.embed.EmbeddedGuiFactory (file:/Applications/Eclipse Java.app/Contents/Eclipse/plugins/com.sap.adt.sapgui.embedding_2.106.1.jar) to method com.apple.eio.FileManager.findFolder(short,int)

WARNING: Please consider reporting this to the maintainers of com.sap.platin.embed.EmbeddedGuiFactory

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations

WARNING: All illegal access operations will be denied in a future release

############################# ERROR #############################

07.03. 13:16:04.133 ERROR: The system reqirements are not met.

07.03. 13:16:04.133 ERROR: Could not find: javafx.properties

07.03. 13:16:04.133 ERROR: in:

07.03. 13:16:04.133 ERROR: /Library/Java/JavaVirtualMachines/sapmachine-jdk-11.0.2.jdk/Contents/Home/lib

07.03. 13:16:04.133 ERROR: Your Java Virtual Machine seems not to support JavaFX, required to run the SAP

07.03. 13:16:04.133 ERROR: GUI for Java 7.50 rev 5.

07.03. 13:16:04.133 ERROR: Please make sure you provide a valid path to the Java FX modules during gui

07.03. 13:16:04.133 ERROR: installation.

############################# ERROR #############################

Warning: Nashorn engine is planned to be removed from a future JDK release

############################# ERROR #############################

############################# ERROR #############################

07.03. 13:16:04.923 ERROR: MissingResourceException: when try to load bundle: <com.sap.platin.base.control.usability.ActionDesc> for realLocal: <pl> localeString: <pl>

############################# ERROR #############################

07.03. 13:16:04.923 ERROR: MissingResourceException: when try to load bundle: <com.sap.platin.base.control.usability.ActionDesc> for realLocal: <pl> localeString: <pl>

############################# ERROR #############################



GreggHinkle
Participant

I also am having the same problem. I am running on OpenSuse Leap 15 using SAPGUI Java 7.5 rev 5 and Eclipse 1809-09 with the 1809-09 ADT plugins. I can launch the SAPGUI Java and access my Netweaver Server perfectly and perform all the needed operations. I can also Launch Eclipse and successfully connect to my Netweaver Server and edit code as expected. The problem occurs when Eclipse tries to launch SAPGUI embedded to perform an operation such as displaying the technical information about a table. Following is the error message that I receive when the embedded SAPGUI Java is attempted to be executed:

The system reqirements are not met.
Could not find: javafx.properties
in: /usr/lib64/jvm/java-11-openjdk-11/lib
Your Java Virtual Machine seems not to support JavaFX, required to run the SAP
GUI for Java 7.50 rev 5.
Please make sure you provide a valid path to the Java FX modules during gui
installation.

However when I connect to the system using SAPGUI Java and execute the same command that eclipse wanted to show in the embeding SAPGUI Java, it works just fine.

andreas_goeb
Explorer

Same here on macOS 10.14.4 with Eclipse 2019.3, SAPGUI Java 7.5 rev 5, javafx-sdk-11.0.2, and sapmachine-jdk-11.0.2.jdk

Accepted Solutions (1)

Accepted Solutions (1)

former_member201346
Active Participant

Eclipse does not know about the JDK and JavaFX information you have provided to the SAP GUI for Java. That's the reason why JavaFX is not found. You must tell Eclipse the location of JavaFX and to load these libraries. Therefor, add two additional lines to the arguments section for the Java VM in the eclipse.ini (after the line with "-vmargs" or simply at the end).

--module-path=<path to lib folder of JavaFx>
--add-modules=ALL-MODULE-PATH

Don't replace the existing --add-modules=ALL-SYSTEM. That one is required by Eclipse and you can declare multiple inclusions. [1]

Best Regards,

Felix Otto

[1] https://bugs.openjdk.java.net/browse/JDK-8165634

andreas_goeb
Explorer
0 Kudos

Thanks a lot Felix, that makes perfect sense - and resolved the issue for me.

dirtyDan
Explorer
0 Kudos

Thank you!

Answers (2)

Answers (2)

Thanks, it also solved my ADT problem.

dirtyDan
Explorer

I'm having the exact same problem and haven't found a solution yet.