I had installed Java in my laptop, but while I'm going to compile the program it doesn't takes my path. Will you give me a good solution for this? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I had installed Java in my laptop, but while I'm going to compile the program it doesn't takes my path. Will you give me a good solution for this?

31st Jul 2016, 5:27 PM
sameer
3 Answers
+ 1
javac is reserved word or operating system don't know it ? enter 'echo %path%' to check paths in your system (in windows)
31st Jul 2016, 5:40 PM
Lisa Kostyshina
Lisa Kostyshina - avatar
+ 1
try to set you environmental variables if you are using windows. you need to add the javac directory there so you can execute it in other directories.
31st Jul 2016, 5:57 PM
jax502
+ 1
it will be done by setting up environmental variables.
2nd Aug 2016, 3:46 PM
harshul gupta