[fix][client] Fix JDK17 compatibility issue (#15964)
[fix][client] Fix JDK17 compatibility issue (#15964)

Fixes #15349


### Motivation

When using the JDK17, pulsar-client throws exception `module java.base does not export sun.net to unnamed module`, it is good to fix it.

### Modifications

Add `--add-opens java.base/sun.net=ALL-UNNAMED` to java option when using JDK17.

### Verifying this change

- [x] Make sure that the change passes the CI checks.

### Documentation

Check the box below or label this PR directly.

Need to update docs? 

- [x] `doc-not-needed` 

massakam/pulsar,massakam/pulsar,merlimat/pulsar,massakam/pulsar,merlimat/pulsar,yahoo/pulsar,massakam/pulsar,merlimat/pulsar,yahoo/pulsar,merlimat/pulsar,massakam/pulsar,yahoo/pulsar,merlimat/pulsar,massakam/pulsar,yahoo/pulsar,merlimat/pulsar,yahoo/pulsar,yahoo/pulsar