Logstash: Error: Could not find or load main class version

Hello,

Can anyone help me in this?
I am trying to run conf file using logstash. i am getting below error:

Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was depreca
ted in version 9.0 and will likely be removed in a future release.
Error: Could not find or load main class version
Caused by: java.lang.ClassNotFoundException: version

Regards,
Priyanka