I am starting to learn Java and I downloaded JDK but when i open java.exe or javac.exe it opens then instantly closes. Any answers?

Recommended Answers

All 2 Replies

Javac.exe is used to compile a .java source file. Java.exe is used to run a compiled class file or jar file.

You can learn how to use those tools here.

how do i run the source file with the compiler

Edit:Never mind i found it in the page. Thanks for the help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.