L0037 - Basic Eclipse Configuration
Upcoming SlideShare
Loading in...5

L0037 - Basic Eclipse Configuration



Setup the Eclipse environment to get optimal performance for the course

Setup the Eclipse environment to get optimal performance for the course



Total Views
Views on SlideShare
Embed Views



0 Embeds 0

No embeds


Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

CC Attribution License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment
  • When you set the application location – e.g. c:\\runtime\\eclipse – and press the Reload button, the list of plug-ins and fragments on the page will fill up with the discovered external plug-ins. By default, all these plug-ins will be invisible to PDE. You can make them visible by enabling them individually or pressing the Select All button. Workspace plug-ins and enabled external plug-ins will be used by PDE to resolve Java classes and plug-in dependencies. In the case where a workspace plug-in has the same ID as an external plug-in, the workspace plug-in masks its external counterpart.

L0037 - Basic Eclipse Configuration L0037 - Basic Eclipse Configuration Presentation Transcript

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