Tuesday, November 18, 2008

Trouble opening java applications in Leopard

I was having trouble executing applications that were developed in java the other day. Here goes a snippet of the error I was getting:

com.apple.launchd[191] ([0x0-0x1fdefdd].????[36322]) posix_spawnp("/Applications/.../Contents/MacOS/JavaApplicationStub", ...): Permission denied

You can easily fix the problem by giving Read, Write and Execute permissions to the user to the JavaApplicationStub executable file.
You do so by running the following command: chmod 777 /[your application path].app/Contents/MacOS/JavaApplicationStub .

Hope that helps.

No comments: