Problems by installing Stardog

As long as JAVA_HOME is set correctly in the shell that is starting Stardog, you should be good.

As for the move from 5 to 7, you'll want to look in the docs at the Migrating to Stardog 6 section and then Migrating to Stardog 7