Rohit Rohit - 1 year ago 64
Java Question

Javah not found error

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.

Answer Source

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.