Print at Dec 31, 2025, 6:33:03 PM

Posted by enkonyito at Nov 16, 2019, 2:51:06 AM
Re: How to generate a .h file with javah?
Thank you Emmanuel!

Based also on this documentation, I was able to generate the YafarayRenderer.h file in the plugin package.
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class betaTestPlugin_YafarayRenderer */

#ifndef _Included_betaTestPlugin_YafarayRenderer
#define _Included_betaTestPlugin_YafarayRenderer
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: betaTestPlugin_YafarayRenderer
* Method: createEnvironment
* Signature: (Ljava/lang/String;Ljava/lang/String;)J
*/
JNIEXPORT jlong JNICALL Java_betaTestPlugin_YafarayRenderer_createEnvironment
(JNIEnv *, jobject, jstring, jstring);


Since I don't know JNI, generating DLLs is less obvious and I get an error in Eclipse when rendering.

It's easier with the modified YafaRay rendering plugin because I kept your packages and added the necessary files and folders.
----------------------------------------
EnkoNyito