Eclipse Java Heap Memory size

Getting the Out of Memory error when running eclipse? Increase heap space using

eclipse -vmargs -Xmx<memory size>

but how do you do this in OSX? Surprisingly difficult to find out how to do this in OSX, but here it is:

If you are using Mac OS X, and launch eclipse using the Finder, the eclipse.ini in eclipse folder doesn’t have any effect. You need to open the Eclipse package (right click, show package content), open the Max OS folder, and edit the eclipse ini located there.

Deploying Swiz based Flex app

When you decide to deploy a Swiz based Flex app, you need to tell the compiler to keep the meta data tags. Under compiler settings, add the following:


Then from the menu. Project -> Export Release Build.

Select the Tomcat WebApps directory and export. This will deploy the export to Tomcat as binary and with Swiz strapped in


Chrome Flash debugger cannot connect

From this website:

What to do if you upgraded and the Flash Debugger doesn’t work.

In Flex the progress bar read “Waiting for Adobe Flash Player to connect to debugger…”, and after a minute or so it timed out with the error: Failed to connect; session timed out.

The fix is actually pretty simple. In Chrome, just type the following URL into your address bar, chrome://plugins/ and click Disable under the Shockwave Flash plugin with the location that ends with “Flash Player Plugin for Chrome.plugin”. You will want to keep the other Flash plugin enabled because that is your debugger version.

SVN setup on STS

There are two parts to the install.

Go to Software install in eclipse and add these two sites:

* Subversive plug-in update site

    Required feature, which should be installed unconditionally:

  • SVN Team Provider – The Eclipse Team Provider for the Subversion version control system.
  • Optional integrations with other plug-ins, which can be installed if you use these plugins and want to have them integrated with Subversive:

    Other optional features:

  • JDT Ignore Extensions – The feature is useful for Java development because it allows to interpret output folders as ignored resources automatically.
  • SVN Team Provider Sources – The sources of the Eclipse Team Provider for Subversion.

* Subversive SVN Connectors update site

Install Flex Builder 3 on Spring STS

So, after much struggling, I finally have an option open.

I downloaded the new Spring STS, which is basically Eclipse with a whole lot of Spring-ness added to it. I tried to install the STS plugin in eclipse but no luck, so I thought I’d give this a go.

The FB3 install fails, but can be manually fixed by doing the following:

1) Install FB3 (I installed it in the STS main directory)

2) Do not overwrite the newer file when prompted so during the FB3 install. Finish the install.

3) Under the STS main directory go to dropins ( sts/dropins )and create a new directory there call FlexBuilder3 (sts/dropins/FlexBuilder3)

4) Now under the installed FB3 plugin (sts/Adobe Flex Builder 3 Plug-in) copy the entire “eclipse” (sts/Adobe Flex Builder 3 Plug-in/eclipse) directory to this new directory just created in step 3 above ((sts/dropins/FlexBuilder3)

5) Start STS and all is well.

Eclipse 3.4 Tomcat 6 SSL

Needed to get Tomcat SSL going to do https. Could not figure out how to add this in Eclipse. I would uncomment the https


<Connector SSLEnabled=”true” clientAuth=”false” maxThreads=”150″ port=”8443″ protocol=”HTTP/1.1″ scheme=”https” secure=”true” sslProtocol=”TLS”/>

but each time I start it, no HTTPS???

Finally found out that the file is read when “creating” the server! This means you need to do the following:

1) Go to the configuration on your drive /Users/des/tomcat6/conf/server.xml

2) Uncomment the Connector you want

3) Create a new server in Eclipse

Port 8443 now available

EC2 eclipse plugin

Hit a bit of a snag with the AWS tool, specifically the eclipse tomcat server. It seems it only supports a subset of AMI’s and specifically only 32bit. They have opened a request to have more images and 64bit added. Might not be what I need after all, although it would have been great.

So, back to manuall deploying the server and setting it all up.