Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change where Java looks for javac.exe

I am trying to upload my GAE app using the console in windows. I am getting the error:

cannot find javac executable based on java.home tried, "C:\Program Files\Java\jre6\bin\javac.exe" and "C:\Program Files\Java\bi n\javac.exe"

Unable to upload app: cannot find javac executable based on java.home, tried "C: \Program Files\Java\jre6\bin\javac.exe" and "C:\Program Files\Java\bin\javac.exe

javac.exe is located in C:\Program Files\Java\jdk1.6.0_18\bin how do I tell java thats where it is

like image 642
Lumpy Avatar asked Jan 27 '26 21:01

Lumpy


1 Answers

You must set the JAVA_HOME environment variable to refer to the top-level folder where java is installed. Right-click "My Computer", Properties, Advanced, Environment Variables. If there's an existing JAVA_HOME variable, then correct it so that its value is

C:\Program Files\Java\jdk1.6.0_18

If there is no existing variable, then create one by using the "New" button. It's up to you whether to do it for the current user or for the system.

like image 162
Jonathan Feinberg Avatar answered Jan 29 '26 09:01

Jonathan Feinberg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!