# Having trouble running elasticsearch

**URL:** https://discuss.elastic.co/t/having-trouble-running-elasticsearch/326528
**Category:** Elasticsearch
**Created:** [February 26, 2023, 10:11pm UTC](https://discuss.elastic.co/t/having-trouble-running-elasticsearch/326528 "2023-02-26T22:11:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bawac](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@bawac](https://discuss.elastic.co/u/bawac)
#### Post date: [February 26, 2023, 10:11pm UTC](https://discuss.elastic.co/t/having-trouble-running-elasticsearch/326528/1 "2023-02-26T22:11:57Z")

</div>

I am trying to run elasticsearch from my terminal and I'm getting this error:

```auto
warning: ignoring JAVA_HOME=/usr/lib/jvm/java-11-openjdk-arm64; using bundled JDK
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:4096 Cores:2
Params database has 15 entries
Box64 with Dynarec v0.2.1 8d9c6b2d built on Feb 26 2023 21:50:40
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 49 Env var
Looking for /home/parallels/elasticsearch/jdk/bin/java
argv[1]="-Xms4m"
argv[2]="-Xmx64m"
argv[3]="-XX:+UseSerialGC"
argv[4]="-Dcli.name=server"
argv[5]="-Dcli.script=/home/parallels/elasticsearch/bin/elasticsearch"
argv[6]="-Dcli.libs=lib/tools/server-cli"
argv[7]="-Des.path.home=/home/parallels/elasticsearch"
argv[8]="-Des.path.conf=/home/parallels/elasticsearch/config"
argv[9]="-Des.distribution.type=tar"
argv[10]="-cp"
argv[11]="/home/parallels/elasticsearch/lib/*:/home/parallels/elasticsearch/lib/cli-launcher/*"
argv[12]="org.elasticsearch.launcher.CliToolLauncher"
Rename process to "java"
Using native(wrapped) libz.so.1
Using emulated /home/parallels/elasticsearch/jdk/bin/../lib/libjli.so
Using native(wrapped) libpthread.so.0
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libutil.so.1
Using native(wrapped) librt.so.1
Using emulated /home/parallels/elasticsearch/jdk/lib/server/libjvm.so
Using native(wrapped) libm.so.6
Warning: Weak Symbol collector_func_load not found, cannot apply R_X86_64_JUMP_SLOT @0xffff92447a70 (0x282076)
Warning, resizing of TLS occured! size: 0->65536 / n_elfs: 1->1
Using emulated /home/parallels/elasticsearch/jdk/lib/libjimage.so
Using emulated /home/parallels/elasticsearch/jdk/lib/libjava.so
Using emulated /home/parallels/elasticsearch/jdk/lib/libjsvml.so
Using emulated /home/parallels/elasticsearch/jdk/lib/libnio.so
Using emulated /home/parallels/elasticsearch/jdk/lib/libnet.so
Using emulated /home/parallels/elasticsearch/jdk/lib/libzip.so
Error: Could not find or load main class org.elasticsearch.launcher.CliToolLauncher
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.launcher.CliToolLauncher

```

I am running an ARM64 version of Ubuntu on an m2 mac, at first i thought that was the problem but it seems it's just some java class missing and I'm not sure what to do.

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [February 26, 2023, 11:43pm UTC](https://discuss.elastic.co/t/having-trouble-running-elasticsearch/326528/2 "2023-02-26T23:43:28Z")

</div>

Hi @bawac Welcome to the community.

Couple more items...

Exactly what version of elasticsearch did you download? Kinda looks like perhaps you are trying to run the `x86` not the `aarch64` which are the ARM builds

`https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.6.2-linux-aarch64.tar.gz`

Exactly how did you install?

Exactly what command did you run?

---

<div class="post-metadata">

### Author: ![bawac](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@bawac](https://discuss.elastic.co/u/bawac)
#### Post date: [February 28, 2023, 2:37pm UTC](https://discuss.elastic.co/t/having-trouble-running-elasticsearch/326528/3 "2023-02-28T14:37:06Z")

</div>

Hey, that was exactly the problem. I downloaded the wrong thing and tried to run x86 instead of the arm version. After I downloaded the correct version, everything worked. Sorry for the poor question.

---

<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: [March 28, 2023, 2:37pm UTC](https://discuss.elastic.co/t/having-trouble-running-elasticsearch/326528/4 "2023-03-28T14:37:30Z")

</div>

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