hi - have just downloaded Freecol 11.1 on an iMac, which is running OS X Yosemite (10.10.1) - installed "legacy Java SE 6" - as requested by the programme. However, when I run Freecol I get an error message stating that :
"FreeCol.app" is damaged and can't be opened. You should move it to the Trash.
Any ideas??
Have you tried updated to Java 7? I know a lot (or all) of the code has been updated for use with Java 7, but I'm unsure whether running the application requires Java 7 or higher or not.
Can you try updating to Java 7 with the link from Java.com at https://www.java.com/en/download/manual_java7.jsp
I just tried 0.11.1 on a mac running yosemite. The usual users of that machine had already installed a java that describes itself as:
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)
I unzipped/tarred the FreeCol download for mac into the Applications directory and was able to launch FreeCol from there and play a few turns without incident. I therefore believe the problem is local to your machine as Caleb suggested.
Hi,
I encounter the same problem with the current version 0.11.3.
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)
➜ Java java -jar FreeCol.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/sf/freecol/FreeCol : Unsupported major.minor version 51.0
...
I am installing java 7 as we speak, but at least for me, it is not running out of the box either.
Cheers,
Andrej
[Update] Java 7 can't be installed on Macs if you have a newer version afaics.
Last edit: Andrej Schoeke 2015-04-22
With what version of java is the Mac version compiled?
Java 1.6.x is not newer than 1.7.x. If you can not install 1.7 you should try 1.8, as the code requires 1.7 as a minimum (I dont know about Mac specifics).
Last edit: wintertime 2015-04-22
@wintertime: The message was from the installer, that I can't install Java 7 as my currently used Java is newer.
I installed Java 8:
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
When I click FreeCol.app I still get the same message.
Trying to start from CLI:
➜ Downloads cd FreeCol.app/Contents/Resources/Java
...
[Loaded sun.net.www.protocol.jar.URLJarFile$URLJarFileEntry from /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/rt.jar]
[Loaded java.util.HashMap$KeySet from /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/rt.jar]
[Loaded java.util.HashMap$KeyIterator from /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/rt.jar]
[Loaded net.sf.freecol.common.io.FreeColDirectories from file:/path/to/FreeCol.app/Contents/Resources/Java/FreeCol.jar]
Not a directory: data
[Loaded java.util.IdentityHashMap$KeySet from /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/rt.jar]
[Loaded java.util.IdentityHashMap$IdentityHashMapIterator from /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/rt.jar]
[Loaded java.util.IdentityHashMap$KeyIterator from /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/rt.jar]
Last edit: Andrej Schoeke 2015-04-22
Are you installing the JDK version 1.8 (update 45 is current as of the this writing)?
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
The Java SE Development Kit 8u45 should display a Mac OS X x64 file for you to download and install.
You could try reading the mailing list archive, as there some people discussed the problem.
Or try one of the platform-neutral downloads?
Last edit: wintertime 2015-04-22
Hallo,
I have the same problems with the freecol-0.11.3-mac.tar.bz2.
I also receive the message "No compatible version of Java 1.7+ is available."
I am running osx 10.10.3.
The follwing java versions are installed on the system.
JDK 1.8u45 (oracle)
JRE 1.8u45 (oracle)
JRE 1.6u65 (apple)
I think the correct java version is installed, but the app package is not finding the oracle versions. I think this depends on the app package. The Java entrie inside the info.plist will be used by the programm /System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaApplicationStub. This is an apple application, which is not knowing the oracle java versions.
I think the problems for mac users start with using java 1.7 for freecol
See also the entry MCL-1049 from Minecraft.
https://bugs.mojang.com/browse/MCL-1049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
I can actually launching freecol from the console. Using freecol-0.11.3.zip with the freecol script. But I have to call "export JAVA_HOME=
/usr/libexec/java_home -v 1.8*
" before. If not java 1.6 will be used. I think the JDK must be installed, and the execution right must be set for the freecol script.if you still have the issue after updting to HighSierra do this.
Move your app to your Application folder
Open up a terminal screen
type xattr -cr and drag and drop your app to the terminal screen
It should be something like
xattr -cr/Applications/FreeCol/FreeCol.app
press Enter and here you go.