I'm trying to include EasyModbusJava.jar
and commons-lang3-3.8.1.jar
in a JavaFX Gluon project using Eclipse. But when I compile, I get this:
/home/dell/Dokument/eclipse-workspace-2018-09/OKIDERAMPC/OKIDERAMPCApp/src/main/java/com/gluonapplication/thread/ModbusConnection.java:6: error: package org.apache.commons.lang3 does not exist
import org.apache.commons.lang3.ArrayUtils;
/home/dell/Dokument/eclipse-workspace-2018-09/OKIDERAMPC/OKIDERAMPCApp/src/main/java/com/gluonapplication/thread/ModbusConnection.java:8: error: package de.re.easymodbus.modbusclient does not exist
import de.re.easymodbus.modbusclient.ModbusClient;
How can I in a very easy and proper way, using Eclipse, to include JAR files into a Gluon project? I don't want to include the JAR files with a non-standard way, like editing an file and copy and paste. It can break my project. It's better to use the tools from the IDE instead.
The only way that I know is to include the respective jars in the build.gradle
The jars show in eclipse under "Project and External dependencies" and their properties (e.g. path to javadoc) can not be edited. To achieve this you can add
and
to gradle.build