Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am currently at a loss as to why this is happening. I did some basic research by running:

whereis javac

-and-

find / -name javac

...and I came up with nothing I searched the web for answers but they all seem to focus on javac existing on the filesystem, and that needs to be done is to restore a missing sym-link.

Has anyone run up against this issue and found a solution ?

I have attempted to install openJDK on Scientific Linux 6.3 with the command:

yum install openjdk

Thanks!!!

share|improve this question
add comment

4 Answers

You actually just need to install java-[version]-openjdk-devel, because the base package doesn't include compilers or other developer tools. This contains /usr/lib/jvm/java-[version]-openjdk-[version].[arch]/bin/javac, and will use the alternatives system to set up a symlink to /usr/bin/javac.

share|improve this answer
    
Someone needs to tell the package maintainers what the 'd' stands for in 'jdk'! –  David Minor Apr 4 at 18:41
add comment

Yum list openjdk to make sure the file is in the rpm then you can run yum whatprovides *\javac to see all packages that contain the binary.

share|improve this answer
    
yum list doesn't do what you think it does. yum provides is a good suggestion, though. –  jgoldschrafe Oct 14 '12 at 20:51
add comment

Have you tried making a softlink from the library utility location to your terms or bin dir?
Have you tried?

grep -r javac /usr/jdk
share|improve this answer
add comment

Javac is not included in the OpenJDK package. You will need the JDK package from Oracle in order to get that, and other, executable java programs.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.