JAR File Runs From CMD But Not Via Double Clickin
I made a simple java application and am trying to run it as a standalone JAR file via double clicking. It will not launch when clicked, only when using java -jar <path> in the cmd line. Please help! (I have JRE 9.0 installed. Have tried on Windows and OSX. Built using Intellij IDE). Thanks for the help in advance! EDIT: When running from cmd on Windows, I am provided the following information: at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)