"javac" was not found and could not be manually located in C: \ Program File (86x) \ Java \ jre7 \ bin

I know this is a classic question, but please help me solve this problem. After installing jre7 Update 25 on Windows 7, setting JAVA_HOME, CLASSPATH and adding them to PATH, "java" and "javacpl" work fine, but "javac" was not found and could not be manually located in C: \ Program File (86x) \ Java \ jre7 \ bin. What can you offer? Thanks.

+4
source share
4 answers

JRE is a Java Runtime Environment and includes only the software necessary to run (run) Java applications. To compile Java source code using javac , you will need to install the Java Development Kit (JDK) ( download link ).

+16
source

To use javac in cmd, the JDK must be installed on your system ...

javac will not work if you specify the bin folder inside the JRE (C: \ Program Files \ Java ** jre7 ** \ bin)

Please check javac.exe inside the bin folder (C: \ Program Files \ Java ** jdk1.7.0_45 ** \ bin)

javac.exe must be inside the JDK (C: \ Program Files \ Java \ jdk1.7.0_45 \ bin) not inside the JRE (C: \ Program Files (x86) \ Java \ jre7 \ bin) "The JRE does not come with the compiler. This just a Java runtime. You need a development kit. to use the javac compiler

For the javac path (indicates memorization when setting up the env variable of the system)

path = C: \ Program Files (x86) \ Java \ jre7 \ bin is incorrect

path = C: \ Program Files \ Java \ jdk1.7.0_45 \ bin is correct

Make sure that "javac.exe" must be inside "C: \ Program Files \ Java \ jdk1.7.0_45 \ bin"

Do not confuse with JRE and JDK both completely different

if you do not have JDK PLS download from this link http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

link for JDK VS JRE What is the difference between JDK and JRE?

Procedure: -

  • Install JDK

  • open cmd prompt

  • type "cd C: \ Program Files \ Java \ jdk1.7.0_45 \ bin" press enter (the path may vary depending on the jdk version and 32-bit version and 64-bit version)

  • type "javac" press enter

made

Now go and change the system environment variable path = C: \ Program Files \ Java \ jdk1.7.0_45 \ bin

it will set the path forever

+5
source

The JRE does not have javac - you need to download the JDK (Java Development Kit).

0
source

you need to install jdk and then add the path to the bin jdk folder in the vaiable path. You can try the links [http://docs.oracle.com/javase/7/docs/webnotes/install] [1]

0
source

Source: https://habr.com/ru/post/1496898/


All Articles