wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes JNI_Onload called when JFrame Exits. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JNI_Onload called when JFrame Exits." Watch "JNI_Onload called when JFrame Exits." New topic
Author

JNI_Onload called when JFrame Exits.

Mandar Khire
Ranch Hand

Joined: Sep 11, 2007
Posts: 492

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...


Millions saw the apple fall, but Newton asked why.
Mandar Khire
Ranch Hand

Joined: Sep 11, 2007
Posts: 492

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...
 
Consider Paul's rocket mass heater.
 
subject: JNI_Onload called when JFrame Exits.
 
Similar Threads
How and where to set maxretries parameter
Looking for an idea to call action listner or other way to call java code from link(not commandlink)
Future computer science student
Style guide question
Logging in different servers