javah jni error Illegal package name

The java class from which the header file is to be generated should not be provided as com\level1\level2\classname but as com.level1.level2.classname