# Problems with Java and Elasticsearch: JVM flavor 'sun6' not understood

**URL:** <https://discuss.elastic.co/t/problems-with-java-and-elasticsearch-jvm-flavor-sun6-not-understood/258510>\
**Category:** Elasticsearch\
**Created:** [December 13, 2020, 5:55pm UTC](https://discuss.elastic.co/t/problems-with-java-and-elasticsearch-jvm-flavor-sun6-not-understood/258510 "2020-12-13T17:55:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![waynesmallman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/waynesmallman/32/18596_2.png) [@waynesmallman](https://discuss.elastic.co/u/waynesmallman)\
**Post date:** [December 13, 2020, 5:55pm UTC](https://discuss.elastic.co/t/problems-with-java-and-elasticsearch-jvm-flavor-sun6-not-understood/258510/1 "2020-12-13T17:55:01Z")

</div>

Hello!

I'm preparing a Raspberry Pi 4 as a development environment, and I've hit a snag having installed and configured Java.

I've installed Elastic from [the official documentation here on Elastic for Debian](https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html).

However, after installing Elastic, I got:

> ● elasticsearch.service - LSB: Starts elasticsearch  
> Loaded: loaded (/etc/init.d/elasticsearch; generated)  
> Active: active (exited) since Sun 2020-12-13 17:40:38 GMT; 12min ago  
> Docs: man:systemd-sysv-generator(8)  
> Tasks: 0 (limit: 4915)  
> CGroup: /system.slice/elasticsearch.service  
> Dec 13 17:40:38 raspberrypi systemd[1]: Starting LSB: Starts elasticsearch...  
> Dec 13 17:40:38 raspberrypi elasticsearch[8795]: [warning] /etc/init.d/elasticsearch: JVM flavor 'sun6' not understood  
> Dec 13 17:40:38 raspberrypi systemd[1]: Started LSB: Starts elasticsearch.

I ran: "sudo journalctl --unit elasticsearch" and got:

> Dec 13 17:40:38 raspberrypi systemd[1]: Starting LSB: Starts elasticsearch...  
> Dec 13 17:40:38 raspberrypi elasticsearch[8795]: [warning] /etc/init.d/elasticsearch: JVM flavor 'sun6' not understood  
> Dec 13 17:40:38 raspberrypi systemd[1]: Started LSB: Starts elasticsearch.

Strange thing is, there's nothing in: cat var/log/elasticsearch

I'm assuming Elastic is struggling with the version of Java, but that's as far as my own DevOps takes me!

---

<div class="post-metadata">

**Author:** ![waynesmallman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/waynesmallman/32/18596_2.png) [@waynesmallman](https://discuss.elastic.co/u/waynesmallman)\
**Post date:** [December 14, 2020, 7:56pm UTC](https://discuss.elastic.co/t/problems-with-java-and-elasticsearch-jvm-flavor-sun6-not-understood/258510/2 "2020-12-14T19:56:49Z")

</div>

When I run the command: `./bin/elasticsearch` I get:

> Unrecognized VM option 'Use.ParNewGC'
> 
> Error: Could not create the Java Virtual Machine.
> 
> Error: A fatal exception has occurred. Program will exit

---

<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:** [January 11, 2021, 7:56pm UTC](https://discuss.elastic.co/t/problems-with-java-and-elasticsearch-jvm-flavor-sun6-not-understood/258510/3 "2021-01-11T19:56:59Z")

</div>

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