Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

L0037 - Basic Eclipse Configuration


Published on

Setup the Eclipse environment to get optimal performance for the course

  • Be the first to comment

  • Be the first to like this

L0037 - Basic Eclipse Configuration

  1. 1. Basic Eclipse Configuration Setup the Eclipse environment to get optimal performance for the course
  2. 2. Eclipse Components and Versions <ul><li>Java JDK 5 or 6 </li></ul><ul><li>Eclipse SDK 3.5.1 Galileo </li></ul><ul><li>Eclipse RCP SDK 3.5 (though not needed) </li></ul>
  3. 3. Two Eclipse Installations <ul><li>You need two Eclipse installations: </li></ul><ul><ul><li>Your development system </li></ul></ul><ul><ul><li>Your target platform </li></ul></ul><ul><li>For Eclipse development with other target architectures this is mandatory! </li></ul><ul><li>The primary advantage is that the IDE and product need not use the same version! </li></ul><ul><li>Also the exact target platform is under control and no extra plug-ins can sneak in… </li></ul><ul><li>Configure the target platform in the “Target Platform” preferences page </li></ul>
  4. 4. Add to the Java Search <ul><li>Add all plug-ins to the Java search </li></ul><ul><li>This makes certain operations look at a much wider scope of plug-ins, which means it is a lot easier to find classes and data </li></ul><ul><li>In the “Plug-Ins” view of the PDE perspective </li></ul><ul><ul><li>Select all plug-ins </li></ul></ul><ul><ul><li>Use “Add to Java Search” in the context menu </li></ul></ul>
  5. 5. Eclipse Arguments <ul><li>The Eclipse IDE should be launched using a windows shortcut with the following arguments </li></ul><ul><ul><li>&quot;C:Program Fileseclipse ... eclipseeclipse.exe“ </li></ul></ul><ul><ul><ul><li>The application… </li></ul></ul></ul><ul><ul><li>-clean </li></ul></ul><ul><ul><ul><li>All cache files are deleted </li></ul></ul></ul><ul><ul><li>-data &quot;D: ... workspace“ </li></ul></ul><ul><ul><ul><li>The path of the workspace </li></ul></ul></ul><ul><ul><li>-vm &quot;C:Program FilesJavajre1.6.0_07binjavaw.exe“ </li></ul></ul><ul><ul><ul><li>The JWM to use in case there are multiple WMs installed </li></ul></ul></ul><ul><ul><li>-vmargs </li></ul></ul><ul><ul><ul><li>Arguments for the VM (see next slide) </li></ul></ul></ul>
  6. 6. Java VM Arguments <ul><li>Specified after the –vmargs argument </li></ul><ul><ul><li>-Xmx <n> M </li></ul></ul><ul><ul><ul><li>Max heap space (defaults to 512M in Ganymede and Galileo) </li></ul></ul></ul><ul><ul><li>-Xm s<m> M </li></ul></ul><ul><ul><ul><li>Initial heap space (defaults to 40M in Ganymede and Galileo) </li></ul></ul></ul><ul><ul><li>-XX:MaxPermSize= <m> M </li></ul></ul><ul><ul><ul><li>Max memory for permanent data – like structures and classes </li></ul></ul></ul><ul><li>My rules of thumb </li></ul><ul><ul><li><n> = Physical memory/2 </li></ul></ul><ul><ul><li><m>= <n>/4 </li></ul></ul><ul><ul><li>But… your numbers depend on your machine and also on your resident software like anti-virus and firewalls! </li></ul></ul><ul><li>Other arguments to consider: </li></ul><ul><ul><li>-Du s;Tonny Madsen, The RCP Company“ </li></ul></ul><ul><ul><ul><li>Sets the name to use in javadoc comments for @author </li></ul></ul></ul><ul><ul><li>-Declipse.cvs.anon=1 </li></ul></ul><ul><ul><ul><li>Includes the eclipse CVS repository automatically </li></ul></ul></ul>
  7. 7. More Information <ul><li>“ Tuning Eclipse Performance and Avoiding OutOfMemoryExceptions” </li></ul><ul><ul><li> </li></ul></ul><ul><li>“ Running Eclipse” </li></ul><ul><ul><li> </li></ul></ul><ul><ul><ul><li>The basic eclipse runtime arguments </li></ul></ul></ul><ul><li>“ Eclipse Runtime Options” </li></ul><ul><ul><li> </li></ul></ul><ul><ul><ul><li>List of the usable system properties </li></ul></ul></ul><ul><li>“ Manage your Eclipse environment” </li></ul><ul><ul><li> </li></ul></ul>