Problem
Trying to install a MySQL database driver and receiving the error:
Cannot find a JRE or JDK. Please set JAVA_HOME to a >=<version>
Solution
If this is encountered,
- Ensure java has been installed and is running.
- Check to see if the correct java version is being used.
- Check you have run the command:
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0/jre
This should be added to your ~/.bashrc
profile. Please take note that the profile file and the Java path may be different for the your system.
Comments
1 comment
It must to be apply to the datameer user
Please sign in to leave a comment.