Friday, April 8, 2022

[SOLVED] Javah not found error

Issue

I had installed Java 7 in fedora but when i tried javah from command prompt it is showing as javah:command not found where as javac,java else are working. When i searched in /usr/bin, executables are there for javac,java,javaws but not for javah. Javah is visible in Java/JDK/bin folder. How can i run javah command.

Thanx in advance.


Solution

Either type the full path of the file (or add that folder where it's in) to your path environment variable using export PATH=$PATH:/path/to/java/JDK/bin/folder. To have that permanently in your path you could add that line to your .bashrc.



Answered By - w4etwetewtwet
Answer Checked By - Robin (WPSolving Admin)