Skip navigation

Only one Java Application will launch (jEdit or FreeMind) at a time

1119 Views 4 Replies Latest reply: Jun 5, 2013 2:04 PM by JavaGrendel RSS
katzlbt Level 1 Level 1 (30 points)
Currently Being Moderated
Oct 30, 2012 1:53 AM

I just bought a new MacbookPro retina and have 2 Java Applications that I cannot launch in parallel: jEdit and FreeMind. Both come as normal Applications.

 

Symptoms:

When I start jEdit with Finder first, and then try to start jEdit's window is brought to front.

When I start FreeMind first, and then try to start jEdit FreeMind's window is brought to front instead of starting the opther app.

 

Checking with Xcode's Plist editor, I see different Bundle identifiers in the Info.plists of both apps.

 

What could be wrong?

 

Thanks for any Help.

MacBook Pro with Retina display, OS X Mountain Lion (10.8.2)
  • gary_s Calculating status...

    I've had the same issue with not being able to run Freemind (1.0.0_beta9) and jEdit 5.0 at the same time on OS X 10.8. Once one is running it trying to start the other just brings the first one to the front.

     

    However, if I start one from a disk image I can run both. The plist on the disk image and the one in the application folder(s) are identical.

     

    Trying to start one from a terminal with "open" results in the same behavior.

     

    Starting Freemind as the second application by directly executing the JavaApplicationStub from a terminal does work.

    /Applications/FreeMind.app/Contents/MacOS/JavaApplicationStub &

     

    Not exactly an elegant work around, but it will have to do until I can take a break and do some more debugging. Or someone else provides and answer.

  • JavaGrendel Calculating status...

    Hi,

     

    I think I have the answer to this particular issue.

     

    Take a look at the actual executable in the MacOS folder of the app bundles for the affected applications. If they are both symlinks to /System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaAppl icationStub, then you need to replace the symlink with a copy of the executable it links to.

     

    The reason this is a problem is that the core services database (when it's seeded) caches an exec inode for the executable. Since both these Java apps symlink to the same executable, they get the same exec inode. So if one is running, and you try to launch the other, Mac OS X thinks the app is already running.

     

    Another solution to this problem might be to try opening the app in a terminal window using both -n -a "<App name>" - this forces the OS to start a 'new' copy of the app.

     

    Hope this helps anyone else that has this problem...

     

    Cheers.

     

    PS: You can rebuild the core services database by following the instructions here . Also, use the -dump option to get a full dump of the database itself.

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.