

Download and install the Java SDK for MacĬlick on the downloaded eclipse_mac.dmg file to open the Eclipse disk image.ĭrag the Eclipse app into the Applications folder on your Mac.ĭrag the Eclipse icon from there to your Dock to create a shortcut.Ĭlick on the icon in the Dock to open Eclipse.You can check your version of macOS using these instructions. If you don't have a supported version of the operating system, you'll need to either upgrade or do your class work on a cluster machine. That’s all for a quick roundup on eclipse.ini configuration and VM arguments.Our version of Eclipse will only work on macOS 10.6 (2009) or higher. For example, below snippet will increase the eclipse heap size to 2 GB. You can easily do it by editing -Xmx value. If you are getting OutOfMemoryError related to Heap space, then you can try to increase the maximum heap size available to eclipse. However you will also not get out of memory error because of permgen space. Note that there is no more Permgen space from Java 8 onwards, so setting this option will have no effect. Below is the configuration to increase permgen space to 512 MB in eclipse.ini file. , then you should increase Permgen space.

If you are getting : PermGen space error, mostly when you are working on larger code base, doing maven update for large projects etc. Just change the JDK bin directory path accordingly. You can configure it similarly for Windows or Linux operating systems. Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/bin

My eclipse.ini file snippet showing -vm argument usage to configure eclipse to use JDK8 in Mac OS X. Permgen space default value is configured as 256MB that is good for small to medium projects.Įclipse.ini vm argument is useful when you have multiple JDK installation and you want to make sure that your eclipse runs on a specific JVM, rather than picking system configured jdk path. They are configured using VM arguments -XX:MaxPermSize, -Xms and -Xmx. If you are getting Out of Memory errors, you should try to increase Permgen space and maximum heap space values.–launcher.XXMaxPermSize specifies the maximum permgen space to use by eclipse launcher, increase this value if your eclipse startup is failing with out of memory error.For example -vm settings for JDK to be used. All the lines after -vmargs are passed as JVM arguments, so all options and arguments for eclipse startup must be specified before -vmargs.Each line before -vmargs contains an option followed by the value for option.Some important points about eclipse.ini file are: Here is the example eclipse.ini file from my default eclipse installation.
