Thursday, April 3, 2008

Arguments to run Eclipse

Usually when you run eclipse, you need to put some arguments to the command line. Many people do it, but doesn't know that eclipse also takes arguments from the file eclipse.ini, which is located in the eclipse root folder.

No paying attention to this file, sometimes causes errors during the start-up. Furthermore, the behavior of Eclipse often becomes different from the expected.

So the first purpose of this post is to increase awareness regarding the eclipse.ini file.

The second purpose is to keep an example of eclipse.ini here:

-showsplash
org.eclipse.platform
-clean
-vm
C:\jdk1.5.0_11\bin\javaw.exe
-vmargs
-XX:MaxPermSize=256m
-Xms512m
-Xmx512m


To sum it up:
1. Most of the arguments that are needed to run Eclipse I put to eclipse.ini file.
2. The only argument I add to shortcut is -data <path to workspace> in order to specify the workspace.

1/05/2009: Make Eclipse Faster:
-showsplash
org.eclipse.platform
-framework
plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx512m
-XX:PermSize=256m
-XX:MaxPermSize=256m
-Xverify:none
-XX:+UseConcMarkSweepGC
-XX:+CMSClassUnloadingEnabled
-XX:+CMSPermGenSweepingEnabled

No comments: