After hours of Googling I'm a little depressed with the results..
For work, I have multiple Java Installations, some of them via SdkMan, and some of them seem to found there way into the /Library/Java ...
Now to the problem: If I try to start any .jar File (self coded or not) via double-click, it just says 'Couldn't open jar file, check console for errors'.
But if I try to start the same jar File from Terminal, it works just fine.
I know for sure that my Terminal uses another Java Installation than the MacOS 'JarLauncher.app', but I can't find a way to specify the Java installation for this. Under System Settings > Java, there should open a Java Control Panel, but it refuses to open, even after hitting the re-open button several times.
I tried removing the old Java Installation files with the guides I found online, but so far no luck.
Does anyone know how to solve those problems? It's my daily work to write little .jar file Scripts to help colleagues on their workflows.
Currently installed are: Java8u121 via SDKman and /Library/Java Folder, and Java9 via normal Oracle Install Tried removing the others, but not sure if I cleaned them up good enough.
Sadly it's no option to reset the whole system, it's a company managed laptop, and I don't know what will happen to all connected Systems, most of all the ActiveDirectory Sync.
Using MacOS Sierra 10.12.6, not allowed to upgrade to High Sierra yet.