Then I added the maven artifact to the pom.xml file like this:
Code: Select all
<dependencies>
<dependency>
<groupId>com.bitwig</groupId>
<artifactId>extension-api</artifactId>
<version>7</version>
</dependency>
<dependency>
<groupId>com.fazecast</groupId>
<artifactId>jSerialComm</artifactId>
<version>2.4.0</version>
</dependency>
</dependencies>
Code: Select all
import com.fazecast.jSerialComm.SerialPort;
Code: Select all
48 SerialPort bla = SerialPort.getCommPort("COM5");
49 host.println(bla.getSystemPortName());