View Full Version : Xcode where to specify -Xmx and -Xms runtime options?

Aug 1, 2007, 03:53 PM
This is for java,

Thanks for the help,

Just cant seem to locate it.

thanks again

Aug 1, 2007, 08:35 PM
Could you be a bit more specific? What is the purpose of the -Xmx and -Xms arguments? Are you trying to compile?

In your source list on the left, there's a Group titled "Executables." (If I understand your question correctly.) Expand this group, and click on the executable you want to add the options for. Click the "Info" button in the toolbar, then on the "Arguments" tab of the window that pops up.

This is, as far as I know, the easiest way to add runtime arguments to the java compiler from within XCode. :)

Aug 1, 2007, 08:38 PM
Sorry i assume to much,

See normally when using the standard java runtime call your would say something like this

java -Xms64m -Xmx256m fileThatContainsMain

I assume there is somewhere in xcode that i code specify these flags.

thanks for the help!

Aug 1, 2007, 08:45 PM
Hey i followed your directions, i actually found that place earlier and attempted but still nothing works.

I tried calling it
name = -Xmx256m value = -Xmx256m
name = -Xms256m value = -Xms256m

Still nothing,

Aug 2, 2007, 06:21 AM
I set the heap size all the time in Xcode and it works fine. Just do what Littleodie914 says. Add an argument for the executable, and make sure it is ticked. Just put in what the argument is, eg -Xms256m -Xmx256m. Don't use name= value=.

b e n

Aug 2, 2007, 08:45 AM
Straight from the run log

[Session started at 2007-08-02 07:44:18 -0600.]
Unsupported option: -Xms256m

appletviewer has exited with status 1.

This is using the newest xcode environment 2.4.1