# Stardog-admin can't find correct java version on M1 Mac

**URL:** https://community.stardog.com/t/stardog-admin-cant-find-correct-java-version-on-m1-mac/3505
**Category:** Support
**Created:** [February 3, 2022, 5:13am UTC](https://community.stardog.com/t/stardog-admin-cant-find-correct-java-version-on-m1-mac/3505 "2022-02-03T05:13:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![syntheticperson](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/syntheticperson/32/1270_2.png) [@syntheticperson](https://community.stardog.com/u/syntheticperson)
#### Post date: [February 3, 2022, 5:13am UTC](https://community.stardog.com/t/stardog-admin-cant-find-correct-java-version-on-m1-mac/3505/1 "2022-02-03T05:13:03Z")

</div>

I'm following the instructions to install stardog on macOS:

> **[macOS Installation](https://docs.stardog.com/get-started/install-stardog/macOS-installation)**
>
> This page describes how to install Stardog on macOS.

I followed the steps for M1. i.e. install rosetta and an x86 JDK.

When I try launching stardog server, I get this error.

stardog-admin server start  
Unrecognized VM option 'UseParallelOldGC'  
Did you mean '(+/-)UseParallelGC'? Error: Could not create the Java Virtual Machine.  
Error: A fatal exception has occurred. Program will exit.

I checked which version of java my terminal is seeing:

java -version  
java version "17.0.1" 2021-10-19 LTS

Whereas the stardog install instructions installs `adoptopenjdk11`

How do I point stardog to the `adoptopenjdk11` version of java?

thanks

---

<div class="post-metadata">

### Author: ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)
#### Post date: [February 3, 2022, 12:27pm UTC](https://community.stardog.com/t/stardog-admin-cant-find-correct-java-version-on-m1-mac/3505/2 "2022-02-03T12:27:34Z")

</div>

Hi,

I believe you would need to set the JAVA\_HOME environment variable to point at the Java 11 jdk.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)
#### Post date: [February 17, 2022, 12:28pm UTC](https://community.stardog.com/t/stardog-admin-cant-find-correct-java-version-on-m1-mac/3505/3 "2022-02-17T12:28:26Z")

</div>

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