claytonrcarter/cropplanning

universalJavaApplicationStub not executable on OSX

Opened this issue · 2 comments

Your download for OSX 0.7.0 fails to launch with a cryptic message like "cannot be opened". The console reports:

3/6/16 10:01:08.992 PM com.apple.xpc.launchd[1]: (com.apple.xpc.launchd.oneshot.0x10000097.universalJavaApplicationStub[5859]) Could not find and/or execute program specified by service: 13: Permission denied: /Users/emily/Downloads/CropPlanning-0.7.0-Mac/CropPlanning.app/Contents/MacOS/universalJavaApplicationStub
3/6/16 10:01:08.991 PM Finder[362]: spawn_via_launchd() failed, errno=111 label=[0x0-0x250250].CropPlanning path=/Users/emily/Downloads/CropPlanning-0.7.0-Mac/CropPlanning.app/Contents/MacOS/universalJavaApplicationStub flags=1 : LaunchApplicationClient.cp #963 LaunchApplicationWithSpawnViaLaunchD() q=com.apple.root.default-qos
3/6/16 10:01:08.991 PM Finder[362]: spawn_via_launchd() failed, errno=111 label=[0x0-0x250250].CropPlanning path=/Users/emily/Downloads/CropPlanning-0.7.0-Mac/CropPlanning.app/Contents/MacOS/universalJavaApplicationStub flags=1

Running chmod +x CropPlanning.app/Contents/MacOS/universalJavaApplicationStub Corrected the problem.

If other Mac users find this, the process to fix it is:

  1. Open Finder, then Applications, and find the Utilities folder in there.
  2. In the Utilites folder, launch (double-click) the Terminal application.
  3. Type chmod +x into the Terminal window that appears, but don't press Enter. (Note: there is a space after the +x.)
  4. In Finder, find the CropPlanning app icon, then drag it from Finder into Terminal. this will paste a long string into Terminal that starts with /home/ and ends with /CropPlanning.app.
  5. Last, hit backspace in Terminal, then copy and paste the following text into the Terminal window and press Enter: /Contents/MacOS/universalJavaApplicationStub (Note: there should be no spaces between the start of /home and the end of Stub.)
  6. Try relaunching the CropPlanning application.

Sorry to make you do some hacking to get this to work. I'm out of practice on Java applications at this point and this is a classic case of "it worked on my computer". I apologize for the inconvenience.

Thank you Clayton, this workaround fixes this issue.