This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNI_Onload called when JFrame Exits.

 
Mandar Khire
Ranch Hand
Posts: 569
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using java project which runs in Centos, Asterisk, Mysql, Hibernate. When in that project i close JFrame in console i got
"Experimental: JNI_Onload called."

But i create another simple program by netbean & eclipes also which has one JFrame & use it one sentence which use in that big project also.
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE)
But this time i not get above message in console.
I try to find out where it written in System.out.println or Printf (in any c/cpp or h file)
But i cant find any thing... i try google also...so i got info about rxtx something..same use in my project also but in that RXTXComm.jar but i cant find anything.
Can any one help me...
Actually it not harm any thing but i try to find out where it come from...
 
Mandar Khire
Ranch Hand
Posts: 569
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After posting question i download RxTxComm.jar with source, in that i find SerialImp.c.

In SerialImp.c


I glad that i find out from where i get "Experimental: JNI_OnLoad called" in console when i close the app from IDE.
In my mind new question arrived, that
1. in jar file, there are lots of java file..but in which java file this SerialImp.c called so this printf get active?
2. If in my java program i want to catch this printf output & modified it or stop it ?

Now i think this question/post not remain as Swing/AWT/SWT...but not know where should i shift it...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic