# License for stardog

**URL:** <https://community.stardog.com/t/license-for-stardog/1908>\
**Category:** Support\
**Created:** [September 17, 2019, 8:26pm UTC](https://community.stardog.com/t/license-for-stardog/1908 "2019-09-17T20:26:09Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![smrati.hans](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@smrati.hans](https://community.stardog.com/u/smrati.hans)\
**Post date:** [September 17, 2019, 8:26pm UTC](https://community.stardog.com/t/license-for-stardog/1908/1 "2019-09-17T20:26:09Z")

</div>

Hi Team,

We are facing issue in fetching stardog license for windows 10 machine. while requesting from command prompt, it asks for an email id and says email address is undeliverable.

Please help!  
Thank you!

---

<div class="post-metadata">

**Author:** ![Simon\_Krauss](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/simon_krauss/32/383_2.png) [@Simon\_Krauss](https://community.stardog.com/u/Simon_Krauss)\
**Post date:** [September 18, 2019, 12:31pm UTC](https://community.stardog.com/t/license-for-stardog/1908/2 "2019-09-18T12:31:00Z")

</div>

Hi Smrati,

Sorry for the trouble here. Can you share the email address you are using so we can look into why it's getting rejected? If you'd prefer not to post it publicly, you can send it to me in a private message.  
Simon

---

<div class="post-metadata">

**Author:** ![smrati.hans](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@smrati.hans](https://community.stardog.com/u/smrati.hans)\
**Post date:** [September 23, 2019, 4:30pm UTC](https://community.stardog.com/t/license-for-stardog/1908/3 "2019-09-23T16:30:37Z")

</div>

Hi Simon: thank you so much. I could get the key now. But it is throwing another error:  
An unexpected error occurred.  
java.lang.UnsatisfiedLinkError: no Starrocks in java.library.path

Kindly let me know how to resolve this.  
Thank you!

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [September 23, 2019, 5:10pm UTC](https://community.stardog.com/t/license-for-stardog/1908/4 "2019-09-23T17:10:25Z")

</div>

Are you running it from within the stardog-7.0.x directory? If not you'll need to set the STARDOG\_HOME env variable to your installation directory.

---

<div class="post-metadata">

**Author:** ![smrati.hans](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@smrati.hans](https://community.stardog.com/u/smrati.hans)\
**Post date:** [September 23, 2019, 5:13pm UTC](https://community.stardog.com/t/license-for-stardog/1908/5 "2019-09-23T17:13:45Z")

</div>

STARDOG\_HOME is set to path where the license is saved. Stardog installation is in a different directory. That is how earlier versions used to work, right?  
I would like to apologize if i am missing out on something.

Please let me know if STARDOG\_HOME has to be inside the installation itself!

Thank you!

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [September 23, 2019, 5:20pm UTC](https://community.stardog.com/t/license-for-stardog/1908/6 "2019-09-23T17:20:33Z")

</div>

No need to appologize, things have changed a little bit with the 7 release and I'm happy to help out. First, I assumed you're trying to get 7.x running since you mentioned you were having problems downloading the license. Please correct me if that is not the case.

I haven't personally run 7 on windows so I'm not quite sure about the details there. I'm not positive that it's still supported to run directly on Windows and the preferred way may now be to run it on Windows under docker. I'm not positive about that though because the Windows .bat files are still in the ./bin directory. The license should be located in the STARDOG\_HOME directory which would also be the stardog distribution directory .

---

<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 23, 2019, 5:22pm UTC](https://community.stardog.com/t/license-for-stardog/1908/7 "2019-09-23T17:22:17Z")

</div>

STARDOG\_HOME does not need to be the installation directory (we still discourage this), however there should be a JVM setting: `-Djava.library.path=/path/to/stardog/lib`. The .sh/.bat scripts ought to set that, but in cases where it doesn't quite get it right, you'll want to set that in your STARDOG\_JAVA\_ARGS env variable.

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [September 23, 2019, 5:26pm UTC](https://community.stardog.com/t/license-for-stardog/1908/8 "2019-09-23T17:26:03Z")

</div>

Setting STARDOG\_HOME was the "quick start" way. A better recommendation is to set STARDOG\_HOME to where you'll be storing your databases and STARDOG to your installation directory.

I was guessing that java.library.path wasn't getting set correctly because STARDOG\_HOME wasn't set and it was defaulting to the CWD

---

<div class="post-metadata">

**Author:** ![smrati.hans](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@smrati.hans](https://community.stardog.com/u/smrati.hans)\
**Post date:** [September 23, 2019, 5:32pm UTC](https://community.stardog.com/t/license-for-stardog/1908/9 "2019-09-23T17:32:43Z")

</div>

I had issues. But those were replied after resolution by Stardog team. Thank you for that! 🙂  
I am trying to run 7.0.1 on windows without docker.  
I have set STARDOG\_HOME to the directory where license is and where I want to store the databases.  
I tried setting STARDOG\_JAVA\_ARGS to stardog7.0.1/lib folder . but then I am facing  
Error: Could not find or load main class at

Please let me know in case I have set the wrong path or if anything else is required.  
Thank you!

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [September 23, 2019, 5:35pm UTC](https://community.stardog.com/t/license-for-stardog/1908/10 "2019-09-23T17:35:17Z")

</div>

I would unset STARDOG\_JAVA\_ARGS for now and try setting and env variable STARDOG to your installation forlder. The folder created after unziping the distribution stardog-latest.zip

---

<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 23, 2019, 5:39pm UTC](https://community.stardog.com/t/license-for-stardog/1908/11 "2019-09-23T17:39:35Z")

</div>

Stardog 7 currently does NOT run natively in Windows. You will need to use the docker image or some other virtual environment.

---

<div class="post-metadata">

**Author:** ![smrati.hans](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@smrati.hans](https://community.stardog.com/u/smrati.hans)\
**Post date:** [September 23, 2019, 7:03pm UTC](https://community.stardog.com/t/license-for-stardog/1908/12 "2019-09-23T19:03:38Z")

</div>

I got license on the machine on which i am installing stardog. On pulling stardog, I am getting this error:  
latest: Pulling from stardog  
image operating system "linux" cannot be used on this platform

Please let me know what should be done in this error.

Thank you!

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [September 23, 2019, 7:05pm UTC](https://community.stardog.com/t/license-for-stardog/1908/13 "2019-09-23T19:05:36Z")

</div>

You need to switch from using native windows containers to linux containers. See this for details [Quick Start Guide and sign in | Docker Documentation](https://docs.docker.com/docker-for-windows/#switch-between-windows-and-linux-containers)

---

<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:** [October 7, 2019, 7:05pm UTC](https://community.stardog.com/t/license-for-stardog/1908/14 "2019-10-07T19:05:43Z")

</div>

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