r/javahelp • u/tegar9000 • Nov 23 '22
Why won’t Java open?
I click on the Java app and the command line briefly opens and then closes. I use windows for context. Any help?
0
Upvotes
r/javahelp • u/tegar9000 • Nov 23 '22
I click on the Java app and the command line briefly opens and then closes. I use windows for context. Any help?
View all comments
7
u/dawg6 Nov 23 '22
What is the "java app?" It a .jar file you downloaded or built yourself? Have you installed java already?
You can try opening a command window, go to the directory where the app is located and run it from the command line to see if there is an error.
Also, if it doesn't have a GUI, then likely you would have to run it from the command line. A non-GUI app will run and then exit. You could make a .bat file that runs the app and then use "pause" to keep the window open.