The source of this problem is that Jar Launcher (
/System/Library/CoreServices/Jar\ Launcher.app) runs the jar just perfectly (as far as I know, the Jar Launcher app is the one that runs jars which you double click in finder), but I need to set a memory buffer limits.
So I've tried to run the jar like:
java -Xms1024m -Xmx2048m -jar <path_to_jar>
And when I run a jar like this, I get an exception:
Exception in thread "Thread-11" java.lang.NoSuchMethodError: net.minecraft.Util.excutePost(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
Do you have any idea what can be wrong with me launching app the way described above? Can you suggest any way to launch the jar like the Jar Launcher does or how to specify memory buffer limits for Jar Launcher?
My console java version is:
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)
But I have no idea how to find out what version is Jar Launcher using