0

Well i tried to start with react native when suddenly i got an error that java compiler couldn't be found. So i searched and find something about java_home which i fixed but still the compiler isnt found. After testing in the cmd prompt javac -version couldn't it recognise any javac. Then i looked in the bin folder in java jre and realised that the javac doesnt even exist. Is this some kind of bug or should i reinstall it or something.

enter image description here

Tobbin2
  • 70
  • 1
  • 6

2 Answers2

0

Try installing jdk as jre is for executing already compiled code. But for a whole new compilation you require a jdk that is development tools of java development toolkit. As javac.exe is a part of jdk not jre.

Himanshu
  • 3,600
  • 2
  • 7
  • 26
0

The image shows a JRE. javac is java compiler, if it's required you need to install JDK.

high-voltage
  • 123
  • 5