This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

make a text output immediately with jni  RSS feed

 
Joe Schaffer
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a strange behaviour in my java application. I am able to connect to a dll and return a value. The problem is, that the text output from the dll will be displayed at the very end of my java application when it is about to end my main function.

Any ideas how it is possible to immediately print out these text ouputs?

greetings

Joe
 
Derek Baker
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it's as simple as adding a newline character to the end of the printed string in the C function.

Derek
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!