thsa / datawarrior

Interactive data analysis and visualisation with chemical intelligence
GNU General Public License v3.0
95 stars 21 forks source link

Need some help to build Data Warrior and the plug-in examples on a Windows laptop. #14

Open zpeng2003bht opened 1 year ago

zpeng2003bht commented 1 year ago

Dear Dr. Sanders:

A co-worker of mine and I like to build DW on a Windows laptop to create the "datawarrior.jar" file, and then use it to support the building of "examplePlugin.jar" based on the "buildAll" script you have deposited in the "plugin_interface_2.1" folder.

After downloading and importing the DW master into an Eclipse IDE, we noticed the following error messages: Error Message 1: Description Resource Path Location Type The project was not built since its build path is incomplete. Cannot find the class file for javafx.scene.control.ContextMenu. Fix the build path then try building this project datawarrior-Th Unknown Java Problem

The project was not built since its build path is incomplete. Cannot find the class file for javafx.scene.control.ContextMenu. Fix the build path then try building this project

Error Message 2: Description Resource Path Location Type The type javafx.scene.control.ContextMenu cannot be resolved. It is indirectly referenced from required type org.openmolecules.fx.viewer3d.V3DPopupMenuController DEDetailPane.java /datawarrior-Th/src/com/actelion/research/datawarrior line 1 Java Problem

The type javafx.scene.control.ContextMenu cannot be resolved. It is indirectly referenced from required type org.openmolecules.fx.viewer3d.V3DPopupMenuController

Thanks so much for your help.

Best, Zhengwei Peng (zhengwei.peng@bhtherapeutics.com)

thsa commented 1 year ago

Dear Zhengwei Peng,

DataWarrior uses both, Swing and JavaFX. JavaFX is not part of every JDK or JRE. Therefore, you need to make sure that your JRE 8 includes JavaFX. I usually use Liberica Full JRE 8, which includes JavaFX.

Best wishes,

Thomas


Von: zpeng2003bht @.> Gesendet: Freitag, 14. Juli 2023 01:40 An: thsa/datawarrior @.> Cc: Subscribed @.***> Betreff: [thsa/datawarrior] Need some help to build Data Warrior and the plug-in examples on a Windows laptop. (Issue #14)

Dear Dr. Sanders:

A co-worker of mine and I like to build DW on a Windows laptop to create the "datawarrior.jar" file, and then use it to support the building of "examplePlugin.jar" based on the "buildAll" script you have deposited in the "plugin_interface_2.1" folder.

After downloading and importing the DW master into an Eclipse IDE, we noticed the following error messages: Error Message 1: Description Resource Path Location Type The project was not built since its build path is incomplete. Cannot find the class file for javafx.scene.control.ContextMenu. Fix the build path then try building this project datawarrior-Th Unknown Java Problem

The project was not built since its build path is incomplete. Cannot find the class file for javafx.scene.control.ContextMenu. Fix the build path then try building this project

Error Message 2: Description Resource Path Location Type The type javafx.scene.control.ContextMenu cannot be resolved. It is indirectly referenced from required type org.openmolecules.fx.viewer3d.V3DPopupMenuController DEDetailPane.java /datawarrior-Th/src/com/actelion/research/datawarrior line 1 Java Problem

The type javafx.scene.control.ContextMenu cannot be resolved. It is indirectly referenced from required type org.openmolecules.fx.viewer3d.V3DPopupMenuController

Thanks so much for your help.

Best, Zhengwei Peng @.**@.>)

— Reply to this email directly, view it on GitHubhttps://github.com/thsa/datawarrior/issues/14, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACNFEBTFJ5MX74CWEHARYV3XQCBNBANCNFSM6AAAAAA2JTYXNM. You are receiving this because you are subscribed to this thread.Message ID: @.***>


The information of this email and in any file transmitted with it is strictly confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any copying, distribution or any other use of this email is prohibited and may be unlawful. In such case, you should please notify the sender immediately and destroy this email. The content of this email is not legally binding unless confirmed by letter. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of the sender's company.

zpeng2003bht commented 1 year ago

Dear Dr. Sander:

Thanks so much for your nice tips.

After installing JRE 1.8 (JAVA_VERSION="1.8.0_371" which comes with "jfxrt.jar") on my Windows laptop, I was able to a) compile and run DW within the Eclipse IDE; 2) export the Eclipse project out into a "datawarrior.jar" file; 3) import this "datawarrior.jar" back into the Eclipse project under the "datawarrior\lib" tab to help create the "examplePlugin.jar" file; 4) and verify that the "examplePlugin.jar" works as expected after I placed it inside the "C:\Program Files\DataWarrior\plugin" folder of the standalone Data Warrior application. on my laptop.

Best, Zhengwei