I tried installing every jdks the system suggested but even after I couldn't run a single program I reinstalled the jdks repeatedly an there is no mistake with that. Even then it says "javac is available in the following packages"
Asked
Active
Viewed 417 times
-1
-
1How are you trying running them and what exact error message are you getting? – Federico klez Culloca Apr 22 '20 at 12:07
-
javac not fo running, but for compiling... – andrew17 Apr 22 '20 at 12:08
-
Needs **a lot** more details: What **exact** packages have you installed? What's the **exact** command you executed? What's the **exact** error message you get? Without that information we're all just guessing. – Joachim Sauer Apr 22 '20 at 12:11
1 Answers
1
Check if java binary is in path. You may try setting JAVA_HOME environment variable. If you have not yet tried, you may try installing JDK from https://adoptopenjdk.net/. This installation automatically sets path for you.

Sunny Jaiswal
- 46
- 4