# Can't start in OS X on 8.1.0 -- java.lang.UnsatisfiedLinkError: no Starrocks in java.library.path

**URL:** <https://community.stardog.com/t/cant-start-in-os-x-on-8-1-0-java-lang-unsatisfiedlinkerror-no-starrocks-in-java-library-path/3946>\
**Category:** Bug\
**Created:** [September 9, 2022, 1:16pm UTC](https://community.stardog.com/t/cant-start-in-os-x-on-8-1-0-java-lang-unsatisfiedlinkerror-no-starrocks-in-java-library-path/3946 "2022-09-09T13:16:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![akimball](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/akimball/32/1519_2.png) [@akimball](https://community.stardog.com/u/akimball)\
**Post date:** [September 9, 2022, 1:16pm UTC](https://community.stardog.com/t/cant-start-in-os-x-on-8-1-0-java-lang-unsatisfiedlinkerror-no-starrocks-in-java-library-path/3946/1 "2022-09-09T13:16:14Z")

</div>

Have tried both a cask install and a zip based install and same error.

I've even explicitly set my LIB\_DIR in stardog-server.sh to the lib dir of the install which contains the various starrocks libraries but still no dice.

```auto

ERROR 2022-09-09 07:02:49,370 [main] com.stardog.starrocks.StarrocksUtils:dumpLibraryInformation(115): Unable to load native library(Starrocks):

java.library.path = </Users/akimball/dev/apps/stardog-8.1.0/lib>

LD_LIBRARY_PATH = {/Users/akimball/dev/apps/stardog-8.1.0/lib}

java.lang.UnsatisfiedLinkError: no Starrocks in java.library.path: [/Users/akimball/dev/apps/stardog-8.1.0/lib]

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2673) ~[?:?]

at java.lang.Runtime.loadLibrary0(Runtime.java:830) ~[?:?]

at java.lang.System.loadLibrary(System.java:1873) ~[?:?]

at com.stardog.starrocks.StarrocksUtils.loadLibrary(StarrocksUtils.java:63) [stardog-8.1.0.jar:?]

at com.complexible.stardog.Stardog.<init>(Stardog.java:167) [stardog-8.1.0.jar:?]

at com.complexible.stardog.Stardog.<init>(Stardog.java:65) [stardog-8.1.0.jar:?]

at com.complexible.stardog.Stardog$StardogBuilder.create(Stardog.java:672) [stardog-8.1.0.jar:?]

at com.complexible.stardog.cli.impl.ServerStart.call(ServerStart.java:177) [stardog-cli-8.1.0.jar:?]

at com.complexible.stardog.cli.impl.ServerStart.call(ServerStart.java:43) [stardog-cli-8.1.0.jar:?]

at com.complexible.stardog.cli.CLIBase.execute(CLIBase.java:56) [stardog-cli-8.1.0.jar:?]

at com.complexible.stardog.cli.admin.CLI.main(CLI.java:168) [stardog-cli-8.1.0.jar:?]

Failed to load any starrocks library

```

```auto
(base) akimball@MAC lib % pwd
/Users/akimball/dev/apps/stardog-8.1.0/lib
(base) akimball@MAC lib % ls
MSVCP140.dll VCRUNTIME140.dll libStarrocks.dylib
Starrocks.dll libStarrocks-CentOS-7.so	libStarrocks.so

```

---

<div class="post-metadata">

**Author:** ![PaulPlace](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/paulplace/32/1447_2.png) [@PaulPlace](https://community.stardog.com/u/PaulPlace)\
**Post date:** [September 12, 2022, 2:51pm UTC](https://community.stardog.com/t/cant-start-in-os-x-on-8-1-0-java-lang-unsatisfiedlinkerror-no-starrocks-in-java-library-path/3946/2 "2022-09-12T14:51:06Z")

</div>

Is the OSX system where you're attempting to run Stardog using a non-Intel chipset (M1 or M2)? If so, you must first install Rosetta. See [macOS Installation | Stardog Documentation Latest](https://docs.stardog.com/get-started/install-stardog/macOS-installation#prerequisites) for more details.

---

<div class="post-metadata">

**Author:** ![akimball](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/akimball/32/1519_2.png) [@akimball](https://community.stardog.com/u/akimball)\
**Post date:** [September 12, 2022, 6:09pm UTC](https://community.stardog.com/t/cant-start-in-os-x-on-8-1-0-java-lang-unsatisfiedlinkerror-no-starrocks-in-java-library-path/3946/3 "2022-09-12T18:09:50Z")

</div>

Yep, I've installed Rosetta. If I run 'pgrep oahd" - I get the active process for oah. Other apps requiring Rosetta are functioning too. Any other ideas?

Thanks for your help!  
Adam

---

<div class="post-metadata">

**Author:** ![PaulPlace](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/paulplace/32/1447_2.png) [@PaulPlace](https://community.stardog.com/u/PaulPlace)\
**Post date:** [September 14, 2022, 8:22pm UTC](https://community.stardog.com/t/cant-start-in-os-x-on-8-1-0-java-lang-unsatisfiedlinkerror-no-starrocks-in-java-library-path/3946/4 "2022-09-14T20:22:02Z")

</div>

We have run Stardog successfully on Apple chipsets with Rosetta, so I am not sure what else to suggest with regard to diagnosing your problem when attempting to run locally.

A different approach would be to sign up for a Stardog Cloud account (on [https://cloud.stardog.com/](https://cloud.stardog.com/)), click the "Get a Stardog Cloud Instance" button, and then create a free instance.

---

<div class="post-metadata">

**Author:** ![akimball](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/akimball/32/1519_2.png) [@akimball](https://community.stardog.com/u/akimball)\
**Post date:** [September 14, 2022, 9:04pm UTC](https://community.stardog.com/t/cant-start-in-os-x-on-8-1-0-java-lang-unsatisfiedlinkerror-no-starrocks-in-java-library-path/3946/5 "2022-09-14T21:04:34Z")

</div>

Thanks, Paul. I see a colleague of mine also had the same issue (Rebecca Jackson #3953) - we both tried the install and failed in the same way AND posted to the community site without any knowledge of the other! So, something is amiss but it could be a common config on our shop supplied laptops. I've installed 8.0 without incident on this same box before it had to be re-imaged.

---

<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:** [September 15, 2022, 11:36am UTC](https://community.stardog.com/t/cant-start-in-os-x-on-8-1-0-java-lang-unsatisfiedlinkerror-no-starrocks-in-java-library-path/3946/6 "2022-09-15T11:36:41Z")

</div>

On my M1 Mac, I can run Stardog via Rosetta if I'm running an Intel JVM (also through Rosetta). This was the only way to reliably ensure that the java process found the native code properly

---

<div class="post-metadata">

**Author:** ![akimball](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/akimball/32/1519_2.png) [@akimball](https://community.stardog.com/u/akimball)\
**Post date:** [September 15, 2022, 4:35pm UTC](https://community.stardog.com/t/cant-start-in-os-x-on-8-1-0-java-lang-unsatisfiedlinkerror-no-starrocks-in-java-library-path/3946/7 "2022-09-15T16:35:28Z")

</div>

Thanks, Stephen. You inspired me to try some other options.

In the end, I got it running by downgrading to the following runtime:

OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0\_292-b10)

Amazingly, it fired right up. No idea why the AdoptOpenJDK 11 failed after multiple clean installs, but it did.
