File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

JNI_Onload called when JFrame Exits.

Mandar Khire
Ranch Hand

Joined: Sep 11, 2007
Posts: 557

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

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...
I agree. Here's the link:
subject: JNI_Onload called when JFrame Exits.
It's not a secret anymore!