jdk not working | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

jdk not working

I downloaded the installer and installed the jdk. I installed the jdk and it said that it worked. I set the PATH variable and tried running the javac command in command prompt and it didn't work. Did I do something wrong?

8th Nov 2016, 9:50 PM
Jed Ricks
13 Answers
+ 2
I'm behind in a update.... Updating......
8th Nov 2016, 10:11 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
+ 2
Are you a Java developer as well?
8th Nov 2016, 10:14 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
+ 2
Oh, is it your first language?
8th Nov 2016, 10:17 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
+ 2
Yeah C++ is one of my favorite languages.(Java, C++,JavaScript, HTML,CSS,SQL). Are you using Netbeans as your Java IDE? or Eclipse?....
8th Nov 2016, 10:26 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
+ 1
i have installed eclipse and netbeans too but primary i using netbeans. its better i think.
9th Nov 2016, 9:41 AM
P3RS0N
P3RS0N - avatar
0
i had same problem but i solved it. if you try it many times and you have all set correctly just restart computer and then open only cmd prompt and type javac. just try it. if doesnt work it try look if your PATH is not in program files86x. it must be in classic program files. just download any version of jdk and try again. then it works for me.
8th Nov 2016, 10:01 PM
P3RS0N
P3RS0N - avatar
0
did you set it to the bin folder?
8th Nov 2016, 10:06 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
0
C:\ProgrameFiles\Java\javaJDK110\bin
8th Nov 2016, 10:07 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
0
yes you must set it to bin. you have it correct. but why you download 110 version? download 111 or 112. its last update.
8th Nov 2016, 10:09 PM
P3RS0N
P3RS0N - avatar
0
and when you type to cmd prompt javac is not working?
8th Nov 2016, 10:10 PM
P3RS0N
P3RS0N - avatar
0
omg sorry :D i thinked he answered :D sorry
8th Nov 2016, 10:11 PM
P3RS0N
P3RS0N - avatar
0
i just learning to code in java.
8th Nov 2016, 10:15 PM
P3RS0N
P3RS0N - avatar
0
yes. i started with java then i try c++ and thanks to c++ i understand many things and now i return back to java and all is really simple now for me.
8th Nov 2016, 10:20 PM
P3RS0N
P3RS0N - avatar