Developers

Preparing your Computer

qianmoQqianmoQ· 更新于 2026-09-30· 阅读 6 分钟· 0 次阅读

登录后可跨设备保存划线和私人笔记登录

Building a project like Apache PLC4X on multiple target operating-systems is quite a challenge, but I think we managed to make it as simple as possible.

We usually test the PLC4X build on the following systems:

width=100%]

Operating SystemCPU ArchitectureDescription
Linuxx86_64Most computers
Linuxaarch64Linux running on Macs with M processors (Paralells)
Windowsx86_64Most computers
Windowsaarch64Windows running on Macs with M processors (Paralells)
Macx86_64Older Macs
Macaarch64Newer Macs with M processors (Paralells)

However, when building PLC4X there are some requirements the build is expecting you to have provided. These greatly depend on which parts you want to build.

If you’re just building the Java modules, these probably have the least demanding requirements. Also, should the Go parts generally work without any additional installations as the maven build should automatically pull the required packages.

In order to build all Java parts of PLC4X you are required to have at least Java 11 installed on your machine.

We have tested the build with Java 11 up to Java 21 (Latest version at the time of writing this document).

If a new version comes out, please give us a little time to verify and handle any related issues. We’ll probably fix them as soon as possible. However, in the past with Oracle’s new release strategy, there have been a few bumps on the road.

Also will PLC4X build with any Maven version starting with Maven 3.6.0.

Profile

Description

Requirements

Builds Java API, drivers

  • Git
  • LibPCAP

with-c

Builds C API, drivers

with-dotnet

Builds C# and .Net API, drivers

  • dotnet

with-python

Builds Python API, drivers

  • python (min 3.7)
  • pyenv

The following pages will describe how to provide these requirements for your operating system.

Preparing your IDE

IntelliJ

When running Java unit-tests in IntelliJ, you might run into problems where during the test execution complaints arise that JUnit is unable to load {failsafeArgLine}. In this case you need to go to Settings → Build, Execution, Deployment → Build Tools → Maven → Running Tests and deselect the option argLine.

评论

登录后参与评论

正在加载评论…