Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java 1.8.65 javac is missing

I downloaded the newst 1.8.65 JDK a few days ago an the javac file is missing

in case someone believes I accidently downloaded the JRE, here are 2 screenshots

oracle

when I browse to the directory I installed the JDK in

C:\Enwicklung\JDK\1.8.65\bin

the javac.exe file isn't there where it should be, as you can see in this second screenshot

folder

can anyone confirm this? tried to install the JDK a second time without any change.

EDIT: of course I searched the whole drive for a javac.exe, no match was found

like image 382
aldr Avatar asked Jan 01 '16 19:01

aldr


People also ask

Does Java 1.8 have javac?

The javac and javah tools are provided by the java-1.8.

Why is javac command not found?

When the Java is not installed in our system and we try to run Javac command, we get Javac command not found or Java is not Recognized. We can also get this error when Java is installed in our system but the path is not added to the system's environment variable. Javac command is used to compile our java program.

Where can I find javac in JRE?

The JRE doesn't have javac - you need to download the JDK (Java Development Kit).


1 Answers

I was able to solve the "problem" myself. after rechecking every letter of the installation process.

During installation, the installer asks you where you want to install the JDK

enter image description here

I chose the folder C:\Enwicklung\JDK\1.8.65\

A progress bar is displayed and installation continues

Then you are asked

enter image description here

for non-German native speakers

Zielordner = target folder Ändern = change

In this view, the installation process is asking in which folder I want to install Java

I chose the folder C:\Entwicklung\JDK\1.8.65\ again this leads to the following conflict

in C:\Entwicklung\JDK\1.8.65\ there was a bin\ folder of the JDK installation

The JRE aka its alias Java, which a mindful reader should have noticed, but I obviously missed twice, was installed in the same location overwriting the bin\ folder of the JDK with the bin\ folder of the JRE, deleting all files.

enter image description here

An unneeded mistake on my side. Unfortunately, the German installation process doesn't state anywhere that the JRE is being installed except in the folder name of the Zielorder view and that it's installed in the base folder structure.

In my defense, the installation process does not state explicitly that the JRE is being installed next and the installation, at least in this German version, doesn't warn that folders and files are going to be overwritten, which is an undesirable effect from my point of view.

NOTE: I left the predefined folder name as C:\Program Files\Java\jre1.8.0_65 because otherwise after changing it to C:\Entwicklung\JDK\1.8.65\ there would have been no indication for you to know that the JRE is being installed

like image 170
aldr Avatar answered Oct 05 '22 00:10

aldr