Why java and javac commands report different versions in Red Hat Enterprise Linux 6?
Issue
- Why the different version are reported from java and javac?
# /usr/bin/javac -version
javac 1.6.0_32
# /usr/bin/java -version
java version "1.7.0_65"
- How did it happen after installation?
- How can we avoid it?
Environment
Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
