In the [font=courier new]YafarayRenderer.java[/font] file of the new plugin , there is the procedure to generate the [font=courier new]YafarayRenderer.h[/font] file.
By replacing the initial packages with that of the PhotoVideoRendering plugin, I get this error message:
To generate a .h file, you have to compile first the class which contains [font=courier new]native[/font] methods, and add the path of the compiled class to the classpath used by javah.
Have a look to the comment of [font=courier new]loadDLLs[/font] method in [font=courier new]YafarayRenderer[/font] class to get more ideas.