Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Eclipse JNI help?
Eclipse JNI help? [message #600875] Mon, 08 March 2010 20:20
Mark Cheung is currently offline Mark CheungFriend
Messages: 18
Registered: July 2009
Junior Member

so I try calling a method (C) in my jni library for testing.

The java method is as followed:
public void call()
System.out.println("testing 3");
Hello h = new Hello();
System.out.println("testing 3 passed");

//File: Hello.c
#include <jni.h>
#include "Hello.h"
#include <stdio.h>
JNIEXPORT void JNICALL Java_test_Hello_sayHello
(JNIEnv *env, jobject obj)
printf("Hello world!\n");

However, it seems that h.sayHello method is called only after I closed the plug-in.
testing 3
testing 3.5 passed
testing 4 passed
Hello world! ....

How can I call it without closing the plug-in?

Previous Topic:Eclipse JNI help?
Next Topic:Install AJDT 2.0.3 on Eclipse 3.6M6
Goto Forum:

Current Time: Fri May 25 07:26:55 GMT 2018

Powered by FUDForum. Page generated in 0.01471 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top