If I open manually (java -jar name.jar)it works. When I try to open it with ssh command it opens the browser incognito. I have a windows vm with windows server. JDK is installed.
If I open manually (java -jar name.jar)it works. When I try to open it with ssh command it opens the browser incognito. I have a windows vm with windows server. JDK is installed.
I can imagine you have proper installation (your question details was little bit ambiguous) but in any case it could be the java command is not on the command search path for your user account and take this steps to make sure about installation
java -versionAfter verification create shell file and execute shell as ssh user@host "sh ~/app-runner.sh", you may also see here to how create shell for executing jar file(s).