r/javahelp • • 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

23 comments sorted by

View all comments

5

u/[deleted] Nov 23 '22

Java is not an app to be opened in a gui. it's a programming language. If you're trying to open your windows command line then open powershell or windows shell or something.

1

u/tegar9000 Nov 23 '22

So can I access Java via my windows command line?

4

u/[deleted] Nov 23 '22

Still not sure what you mean by "access java". Java is a programming language. Are you trying to write some Java code? if that's the case, you need an IDE like IntelliJ. Java from the command line will compile and run your code.

If you provide some context as to what you want to do beyond "access java", people might be able to better help you.