You might be working on a machine with tons of RAM and still run into the nasty "Java heap space" error in Eclipse, because you are using the 32-bit version of JVM and Eclipse. No matter how much RAM your machine has, you cannot give your Eclipse process more than about 1GB of heap space. Doesn't it suck?
The myth says that you can't use a 64-bit Eclipse for developing EP on Windows. I am here today to bust it!
Eclipse 3.5 (Galileo) 64-bit
Hacker's Summary
Install both 32-bit and 64-bit versions of JVM. Install 64-bit Galileo. Run your Eclipse with the 64-bit JVM. Set the PDE Target Platform environment to win32 x86, and make it run on your 32-bit JVM.
Install JVM
You will need both 32- and 64-bit versions of JDK installed on your machine. The reason is that we currently use an old version of SWT in CM Client, which is only available on win32 x86, and not on win32 x86_64. Therefore the CM Client should be run on a 32-bit version of JVM. However, the Eclipse itself should be run on the 64-bit JVM.
Install Eclipse and Plugins
- From the Eclipse Galileo download page, download eclipse-SDK-3.5.2-win32-x86_64.zip.
- Extract the archive in your directory of choice.
- Append the following to the existing eclipse.ini file inside your eclipse directory. The path after the -vm parameter should point to your 64-bit JVM. Make sure you do not leave any whitespace before or after the parameters.
-vm C:\Program Files\Java\jdk1.6.0_21\bin\javaw.exe -vmargs -Xmx2048M -XX:MaxPermSize=512M - Run Eclipse and install m2eclipse, BIRT, WTP, and PMD. See Developers Guide for more details.
- Go to Window > Prefrences > Java > Installed JREs. You should have your 64-bit JVM listed. Add your 32-bit JVM as a Standard VM. Press OK to close the Prefrences dialog.
- Go to Window > Preferences > Java > Compiler, and set the Compiler compliance level to 1.5.
Set up the Target Platform
- Go to Window > Preferences > Java Plug-in Development > Target Platform. Add a new Target Definition. Start off an empty target definition, then add the location of your rcp-target directory. If your EP resides under c:\ep, the rcp-target would be at c:\ep\com.elasticpath.cmclient\rcp-target.
- Under the Environment tab, set the following parameters:
- Press Finish to end the wizard, and select your newly created target definition to be the active target platform.
Parameter Value Operating System win32 Windowing System win32 Architecture x86 JRE name <your 32-bit JVM>
Now you are ready to import all your projects, set up your server, and run your Commerce Manager client. You might need to manually change the Run Configuration for the commerce manager product to use the 32-bit JVM.
Eclipse 3.6 (Helios) 64-bit
Hacker's Summary
Do the steps above, on a Helios 64-bit installation. In your env.config point to a 64-bit Galileo. Add the maven dependencies to the Deployment Assembly of the web projects.
Follow the steps above!
Follow all the steps above, but with Helios 64-bit instead. You can download it from this page. Use this update site for BIRT and WTP.
Install a 64-bit Galileo
Currently, our Ant build mechanism only supports Eclipse Equinox plugin version 1.0.x. However, Helios ships with Equinox version 1.1. To keep the Ant mechanism working, you need Galileo installed as well. You won't be running it, though. It will just sit there to be used by the Ant build script.
- Download and extract Galileo 64-bit.
- In your env.config, set eclipse.home to point to the installation directory of your Galileo installation.
- In your env.config, set eclipse.version to 3.5.
Add Core Maven Dependencies to Deployments
At this stage, if you try deploying the web projects, you will get ClassNotFoundExceptions, because the Maven dependencies of the com.elasticpath.core project are not deployed by default. You need to manually add those dependencies to your web projects. Right click on the com.elasticpath.core project, and open the properties dialog. Under Deployment Assembly, select Add, then Java Build Path Entries, and then select the Maven Dependencies. You should be able to deploy and run your web projects successfully.
See this forum post (requires login) for more details on the problem with WTP deployments in Helios.

