Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot get the System Java Compiler. Please use a JDK, not a JRE

I am getting Cannot get the System Java Compiler. Please use a JDK, not a JRE. when jsp file are in the my project and I deploy my it to Google App Engine. So I tried the following to fix the problem:

  1. Add -vm C:\Program Files\Java\jdk1.6.0_43\bin\javaw.exe to my eclipse.ini.
  2. Ensure that the JDK is in my project's build path and not the jre.
  3. Add the C:\Program Files\Java\jdk1.6.0_43\bin\ to the PATH for Environment Variable.

But none of these solved the problem. How can I solve this?

like image 783
user2054833 Avatar asked Apr 13 '13 07:04

user2054833


People also ask

Will my program work if I have JRE not JDK?

No need to have JRE when you have JDK. If you open JDK folder and see, you'll have JRE folder inside it which is the same of JRE folder initially you have. +1. I'll just add that JRE is Java Runtime Environnement and JDK is Java Development Kit which contains the JRE for running Java and other tools to develop in Java.


1 Answers

When adding -vm C:\Program Files\Java\jdk1.6.0_43\bin\javaw.exe to eclipse.ini, make sure to put -vm and C:\Program Files\Java\jdk1.6.0_43\bin\javaw.exe on separate lines

like image 58
user2403826 Avatar answered Oct 10 '22 02:10

user2403826