actually getting something to compile and run
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113211 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
e415541501
commit
6ac65b3e5c
6 files changed
+176
-12
No files matched your search
@@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <jni.h>
|
||||
#include "org_apache_maven_natives_sample_helloworld_HelloWorld.h"
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_apache_maven_natives_sample_helloworld_HelloWorld_displayHelloWorld(JNIEnv *env, jobject obj)
|
||||
{
|
||||
char *home;
|
||||
printf("Helloworld from Java JNI\n");
|
||||
home = getenv ("HOME");
|
||||
printf("HOME = %s\n", (home) ? home : "(NULL)");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user