After installation and adding path, JDK closes immediately | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

After installation and adding path, JDK closes immediately

I've followed the steps to adding the path name to my environmental variables, and it clearly did something because if I remove or significantly alter this path then when I type "javac" or "java" into the command prompt it simply says file cannot be found. But with the path added, a screen opens and then closes in a fraction of a second. In that flash it does look like the screen this app shows as the next step. Why is it closing immediately and how can I keep it open? I've read other threads already. Thank

22nd Nov 2016, 5:53 AM
Jurosem
1 Answer
0
Open Command Prompt (or cmd) first and then type in java or javac.
22nd Nov 2016, 6:51 AM
Matthew
Matthew - avatar