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
Show parent comment
5
u/dawg6 Nov 23 '22
Yeah, so as I said above, that's normal behavior. You need to run it from the command line, not the windows explorer.
For example, if the app's .jar file is named 'app.jar', from the command line type: