File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes cleaning / Closing java Console Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "cleaning / Closing java Console " Watch "cleaning / Closing java Console " New topic

cleaning / Closing java Console

Ram Gokul
Ranch Hand

Joined: Oct 07, 2005
Posts: 85
Is it possible to close Java console or unload classes / dlls from the Java console that is attached to a Internet Browser ( MS IE in this case) programatically .
Right now , the java console is not clearing out if the client does not close the browser and visits another application in the same browser session. This is causing some crashing issues in my application.

1. http://Firstapplication/dosomejavastuff.html - This brings up the Java console in the Browser and loads class/ browser.

In the same browser session User types in :
2. http://Secondapplication/dosomejavastuff.html - This tries to load some dlls / classes in console and immediately MSIE crashes .

Does anyone know to solve the problem ?

marc weber

Joined: Aug 31, 2004
Posts: 11343

Can you verify these URLs? I get "page cannot be displayed."

(Crashing is the one thing that MSIE is fairly good at. )

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
Ram Gokul
Ranch Hand

Joined: Oct 07, 2005
Posts: 85
These URLs are not real . I dont have a public Ip address and I have oversimplified the problem.

My main issue is not IE crashing , but the error in Java console called the "unsatisfied Link error " which inturn is crashing my Java interface . The details are as follows:

1.My first application has a java class, which is forcing the opening of Java console and registers a DLL .

when i log out of the application , the java class is finalized but DLL seems to be not unregistered. At this time , java console is not closed.

Now , I run the same appliciation in the same IE browser session .The java class again loads and tries to register the same DLL . At this time , I get a UNsatisfied link error in the Java console and the interface is crashing out. I see that in the second time , a new class loader is loading the DLL but STILL I get the same error .

The place where i think I need help is in my Welcome page where I can see if a Java Console is up and try to close it . If this can happen , then when my java class runs it will bring the console once again. BUT the javascript guys say this cannot be done.

So in my java class where i am registering the DLL using System.loadlibrary , can i do something ?
I agree. Here's the link:
subject: cleaning / Closing java Console
It's not a secret anymore!