I am using the Java API to extract data from a Rhapsody project and I can't get rhapsody.exe to die when I'm done. If I run my application more than once and check the task manager there are several instances of rhapsody.exe.
I am creating an application and opening the project when I instantiate the class ant trying to close it in the finalize method.
public RhapsodyDataMiner( File rpyFile )
application = RhapsodyAppServer.createRhapsodyApplication();
project = application == null ? null : application.openProject(rpyFile.getAbsolutePath());
protected void finalize() throws Throwable
catch( Exception e )
Pinned topic JavaAPI rhapsody.exe won't die
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-02-07T04:31:30Z at 2013-02-07T04:31:30Z by SystemAdmin
SystemAdmin 110000D4XK1305 Posts
Re: JavaAPI rhapsody.exe won't die2013-02-07T04:31:30ZThis is the accepted answer. This is the accepted answer.Well, when I ran it from a jar outside of eclipse it shut down right away. I just remembered that native libraries can't really be unloaded and that eclipse owns the classloader, so the rhapsody.exe instances won't be unloaded until you shutdown eclipse.