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

**URL:** <https://discuss.elastic.co/t/logstash-error-could-not-find-or-load-main-class-version/208668>\
**Category:** Logstash\
**Created:** [November 20, 2019, 9:59am UTC](https://discuss.elastic.co/t/logstash-error-could-not-find-or-load-main-class-version/208668 "2019-11-20T09:59:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [November 20, 2019, 9:59am UTC](https://discuss.elastic.co/t/logstash-error-could-not-find-or-load-main-class-version/208668/1 "2019-11-20T09:59:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 18, 2019, 10:11am UTC](https://discuss.elastic.co/t/logstash-error-could-not-find-or-load-main-class-version/208668/2 "2019-12-18T10:11:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
