How to find OpenJDK installation directory ?
I'm using AWS Amazon EC2 linux.
Problem : How to find OpenJDK installation directory ? Background: when I do java -version ... it shows java 1.7 installed. I want to find where this java installed. I need this because I'd like to set JAVA_HOME environment variable. JAVA_HOME = <installation directory > Could you please help to find OpenJDK installation directory ? |
Code:
% which java |
Quote:
1. Use the repoquery command to do it; First find out what java packages you have installed: Code:
yum info java* Code:
repoquery --list <name of package> 2. Use the rpm command instead; Code:
rpm -ql <name of package> See this for more information. |
All times are GMT -5. The time now is 11:20 PM. |