[Solved] How to define a serial port on raspberry for openhab2 for my razberry zwave binding?

It turns out, there already is an environment variable that can be used:

export EXTRA_JAVA_OPTS=-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0

I’ll create a PR for updating the documentation.