The --add-opens error is an option for the jvm. It was added in java 9 with the caveat that it would be removed in the future and this may be causing the problem. Stardog should support your OS and Java version.
There is a possibility that Stardog is getting confused about what exact jre you're running and that you're actually running java 8 but Stardog thinks you're running 11.
But I dont' understand when stardog supports both the java8 and java 11, why did not it worked before uninstalling 11.0.8.
Now i have the below in my machine.
java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)
I can start the stardog admin server using the
./stardog-admin server start --home /home/users/STARDOG_HOME
It drived me to get the license-key.bin.
NOW THE PROBLEM IS WITH LICENSE KEY:
I kept the license key in my STARDOG_HOME directory.
When I again open terminal and go the path
~/stardog-7.4.0/bin$ ./stardog-admin server start
it again says that valid license key is not present in bin ( but I moved this in to my STARDOG_HOME).
Please help me understand if I have to copy/move the license-key.bin from stardog-7.4.0/bin to STARDOG_HOME.
and Do I need to get a licence every time when I try to start the server.
You need to place your stardog license key in the Stardog_Home directory itself but not in the bin directory.
Note : Stardog Server license key is valid for around 60 Days, so you need to get (generate) license key every time when you run the server.
Do the following steps :
Configure the environment variable "path" with Stardog_Home/bin folder. So that you can execute the command [./stardog-admin server start] from any directory
Execute the command [./stardog-admin server start] from Stardog_Home directory where the license is present
Btw, I really dont understand how this STARDOG_HOME works here.
I have stardog-7.4.0 in my home path from where I can see the server-admin command in bin folder.
If I give the command in my terminal like below:
/home/user/stardog-7.4.0/bin$ ./stardog-admin server start
will start my stardog server.
Please help me understand how can I give the same command from STARDOG_HOME where there is no server-admin.
i.e, if i try to start server-admin from
/home/user/STARDOG_HOME$ ./stardog-admin server start
I am getting an error as stardog-admin command not found.
how can "stardog-admin" will be present in my STARDOG_HOME ?
and
If I set the path as mentioned in your reply "path: Stardog_Home/bin" and try to start server it throws error as "there is no valid license available", because it is present in STARDOG_HOME directory.