# Error injecting constructor StardogKernel

**URL:** <https://community.stardog.com/t/error-injecting-constructor-stardogkernel/2217>\
**Category:** Support\
**Created:** [January 23, 2020, 3:43pm UTC](https://community.stardog.com/t/error-injecting-constructor-stardogkernel/2217 "2020-01-23T15:43:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dscuffell](https://avatars.discourse-cdn.com/v4/letter/d/53a042/32.png) [@dscuffell](https://community.stardog.com/u/dscuffell)\
**Post date:** [January 23, 2020, 3:43pm UTC](https://community.stardog.com/t/error-injecting-constructor-stardogkernel/2217/1 "2020-01-23T15:43:08Z")

</div>

## I have the same/similar problem as this call [Problems installing Stardog](https://community.stardog.com/t/problems-by-installing-stardog/1849), although I think the install is OK. Just starting the server doesn't work.

I get this when running **stardog-admin server start**

Unable to provision, see the following errors:

1. Error injecting constructor, java.lang.ExceptionInInitializerError  
at com.complexible.stardog.StardogKernel.(StardogKernel.java:291)  
at com.complexible.stardog.StardogKernel.class(StardogKernel.java:291)  
while locating com.complexible.stardog.StardogKernel  
while locating com.complexible.stardog.Kernel

* * *

I do have both Java 8 and Java 11 installed on my machine

```
jenv versions

```

system

- 1.8 (set by /Users/derek/opt/stardog-7.1.1/bin/.java-version)  
1.8.0.242  
11.0  
11.0.1  
openjdk64-1.8.0.242  
oracle64-11.0.1

* * *

I inserted some echo statements in stardog-admin to check the version being used. I added the following -  
echo STARDOG\_JAVA\_ARGS  
echo $STARDOG\_JAVA\_ARGS  
echo `java -version`

The output was -  
openjdk version "1.8.0\_242"  
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0\_242-b08)  
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.242-b08, mixed mode)

## STARDOG\_JAVA\_ARGS -Dstardog.home=/Users/derek/data/StardogHome/ -Xmx512m -Djava.library.path=/Users/derek/opt/stardog-7.1.1/bin/../lib

It looks like it's running the right version of java. So, why is it giving this error when starting?

---

<div class="post-metadata">

**Author:** ![dscuffell](https://avatars.discourse-cdn.com/v4/letter/d/53a042/32.png) [@dscuffell](https://community.stardog.com/u/dscuffell)\
**Post date:** [January 23, 2020, 4:06pm UTC](https://community.stardog.com/t/error-injecting-constructor-stardogkernel/2217/2 "2020-01-23T16:06:22Z")

</div>

OK. I've dug a little deeper. I seem to be able to call other java programs from here. I have been using jenvs to manage my java environments. I noticed that the JAVA\_HOME had not been set. I set that to the install for Java8 and the script now started the servers

---

<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 6, 2020, 4:08pm UTC](https://community.stardog.com/t/error-injecting-constructor-stardogkernel/2217/3 "2020-02-06T16:08:22Z")

</div>

Closed on February 6, 2020, 4:08pm UTC

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