[Solved] Serial monitor, not connected

Hello forum, Sorry if I posted in a wrong section..

I'm using Arduino on Archlinux, the version is 1.8.9. Everything seems fine, but serial monitor doesn't communicate with the Arduino. Currently tried a Nano and Uno.
The same connection writes the sketch without errors. For both the Arduinos

If I use another program I can communicate with the Arduinos, so is it a bug ?

===========================================================
Thank you so much for the clue I found that the latest java version makes things work again

Baud rate settings?

The baud rate is following the sketch specifics.
I found an error

Exception in thread "EventThread /dev/ttyACM0" java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
at processing.app.Serial.serialEvent(Serial.java:185)
at jssc.SerialPort$LinuxEventThread.run(SerialPort.java:1299)

This is happening for both Arduinos.

I think there's somthing under the hood.

It is a problem with the java environment. I'm not sure if it is on all linux distros or only Manjaro but I followed these steps to solve it:

On the terminal
$ archlinux-java status

This is the reply:
Available JAva environments:
java-8-openjdk (default)

$ sudo pacman -Syu jre11-openjdk
$ sudo archlinux-java set java-11-openjdk
$ archlinux-java status

This is the reply:
Available JAva environments:
java-11-openjdk (default)
java-8-openjdk

Now you restart the Arduino IDE and the problem should be fixed.

thanks alot alonso67231
i had similar issue and fixed it with your guidance
worshiping

very good

Thank very much alonso67231