JNI, callbacks & Eclipse
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Sunday, October 30, 2005 12:54 AM

I wonder if this is more an Eclipse Q. ... Anyways ... Executing Callbacks.java as taken from 'http://java.sun.com/docs/books/tutorial/native1.1/ implementing/method.html' works correctly from the shell. However, when executed under Eclipse IDE, the order of execution is wrong. Instead of In C, depth = 0, about to enter Java In Java, depth = 0, about to enter C In C, depth = 1, about to enter Java In Java, depth = 1, about to enter C ... ... ... In C, depth = 2, back from Java In Java, depth = 1, back from C In C, depth = 1, back from Java In Java, dep   More>>

I wonder if this is more an Eclipse Q. ... Anyways ...


Executing Callbacks.java as taken from 'http://java.sun.com/docs/books/tutorial/native1.1/
implementing/method.html' works correctly from the shell.


However, when executed under Eclipse IDE, the
order of execution is wrong. Instead of



In C, depth = 0, about to enter Java

In Java, depth = 0, about to enter C

In C, depth = 1, about to enter Java

In Java, depth = 1, about to enter C

...

...

...

In C, depth = 2, back from Java

In Java, depth = 1, back from C

In C, depth = 1, back from Java

In Java, depth = 0, back from C

In C, depth = 0, back from Java



Eclipse stdout is

In Java, depth = 0, about to enter C

In Java, depth = 1, about to enter C

In Java, depth = 2, about to enter C

...

...

...

In C, depth = 2, back from Java

In C, depth = 1, back from Java

In C, depth = 0, back from Java


Got confused here ...

What is the reason for this ? &, is there a way

for correct execution under Eclipse ?


Thanks, dg11

   <<Less
About | Sitemap | Contact