Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac app is missing executable #20

Open
LongboatAline opened this issue Apr 18, 2018 · 7 comments
Open

mac app is missing executable #20

LongboatAline opened this issue Apr 18, 2018 · 7 comments
Assignees
Milestone

Comments

@LongboatAline
Copy link

LongboatAline commented Apr 18, 2018

Downloaded the mac.tar.bz2 of

  • Nightly Release: 2018-04-25
  • Nightly Release: 2018-04-07
  • Nightly Release: 2018-03-22
    did not try others
open Downloads/FreeCol.app/
The application cannot be opened because its executable is missing.

So it seems this archive is incomplete.

A brief try on the .jar showed it unplayable on a notebook - while cursor control did work for n/s/w/e, specific keys for ne,se,sw,nw are missing, and remapping them had no effect.. G for Goto didn't work either, so it looks like movement is restricted to cardinal directions.

@LongboatAline
Copy link
Author

The difference seems to be in the file Contents/Info.plist.
Whereas 0.11.6 refers to Java, the Nightly release employs JavaX which, at least on my System running 10.11.6 doesn't seem to be found. It however works to use the Info.plist from Version 0.11.6, and to create the soft link MacOS/FreeCol pointing to /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub

@HighwayofLife
Copy link
Member

Hmm, ok, thanks. I'll take a look at that.

@HighwayofLife HighwayofLife self-assigned this Apr 28, 2018
@HighwayofLife HighwayofLife added this to the 0.12.0 milestone Apr 28, 2018
@Calebrw
Copy link
Member

Calebrw commented Jul 13, 2018

Just an FYI on this. I don't think there has ever been a Mac OSX developer. At least not for 10+ years.

@paulvi
Copy link

paulvi commented Dec 4, 2018

This issue is the one holding 0.12 milestone, isn't it ?

https://github.com/FreeCol/freecol/milestone/1

@wintertime
Copy link
Member

This issue is the one holding 0.12 milestone, isn't it ?

https://github.com/FreeCol/freecol/milestone/1

AFAIK, there are other issues, but I'm not up to date myself on which those are currently. There is some older talk on the sourceforge mailing list and most of the bugs are reported in tickets there.
https://sourceforge.net/p/freecol/mailman/freecol-developers/
https://sourceforge.net/p/freecol/bugs/

@LongboatAline
Copy link
Author

Using universalJavaApplicationStub seems to have addressed this issue.

Trying out the nightly realease as of 2020-05-26 the configuration seems to have problems in finding its jar file, though:

open FreeCol.app
LSOpenURLsWithRole() failed with error -10810 for the file /Applications/Games/FreeCol.app.

Calling the startup script directly gives a less ominous error:

./universalJavaApplicationStub: line 184: 31m: command not found
...
Error: Could not find or load main class net.sf.freecol.FreeCol
Caused by: java.lang.ClassNotFoundException: net.sf.freecol.FreeCol

The 31m: command not found warnings are a hint to the cause of the problem: in Info.plist, the ClassPath is returning an array, listing the contents of the directories containing the jars.
if the ClassPath is set to a string pointing at the Freecol.jar file, startup is successful.

From my modified Info.plist file

      <key>ClassPath</key>
      <string>$JAVAROOT/FreeCol.jar</string>

PS: you might also consider updating the universalJavaApplicationStub - it is currently at 3.0.6 compared to the 2.0.2 currently in use.

Thanks a lot for addressing this issue and still supporting the MacOS X platform!

@mpope042
Copy link
Member

mpope042 commented Jun 6, 2020

Problem 1: I know nothing about mac packaging.

Problem 2: There is no Info.plist file in our source tree, that must be being generated by our mac build process... see Problem 1. I am to make changes here, but it will need to be in terms of something I can see in our sources. Please advise.

Progress: however the universalJavaApplicationStub is present in the source tree, and has now been updated (git.e9158e0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants