Currently I am working on a .net core console app with a embedded jar. There is no such thing as a java console app, right? So I would want to run my jar file inside my console app. I know the .net process API but I don't know if there is an environment variable telling me the java runtime location so that I can execute it.
Registry keys are not cross-platform, please don't give answers using some Windows-only solutions, please.