Ask Your Question

bash :javac command not found

asked 2016-03-18 10:14:48 -0600

vaibhav gravatar image

updated 2016-03-18 11:02:34 -0600

hhlp gravatar image

I am currently using fedora 23,javac is not there in bash whereas java is found,what to do ?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2016-03-20 08:59:33 -0600

genodeftest gravatar image

You need the java-1.8.0-openjdk-devel package to be installed. No need for installing oracle's java.

edit flag offensive delete link more


This is the correct way in case of openjdk

mdiazm01 gravatar imagemdiazm01 ( 2018-01-11 15:27:50 -0600 )edit

answered 2016-03-18 11:06:50 -0600

dnl gravatar image

javac is the Oracle Java compiler. It appears you can obtain that package from .

javacc is an open-source java compiler, which dnf knows about.

edit flag offensive delete link more


No, that is wrong. javacis the java compiler, even on Fedora and even for openjdk.

genodeftest gravatar imagegenodeftest ( 2016-03-20 08:56:24 -0600 )edit

By default Fedora comes with OpenJDK JRE. As stated by genodeftest yo need to install de development package of OpenJDK that includes de java compiler. You can switch to Oracle's JDK & JRE but you must be aware about the Oracle's licencing schema

mdiazm01 gravatar imagemdiazm01 ( 2018-01-11 15:34:07 -0600 )edit

answered 2016-03-18 11:01:46 -0600

hhlp gravatar image

There is a fantastic guide here :


edit flag offensive delete link more


Why would you install oracle java?

genodeftest gravatar imagegenodeftest ( 2016-03-20 08:56:57 -0600 )edit

Agree with genodeftest, there is no need of Oracle'$$$ JDK or JRE thats why almost all Linux distros have OpenJDK.

mdiazm01 gravatar imagemdiazm01 ( 2018-01-11 15:38:08 -0600 )edit

Question Tools

1 follower


Asked: 2016-03-18 10:14:48 -0600

Seen: 7,492 times

Last updated: Mar 18 '16