Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts

Thursday, January 12, 2012

Adobe Flash Builder 4.5 Hangs

I recently bought Adobe Flash builder 4.6 Premium. It's pretty good but hangs quite a lot. As it was build on top of eclipse, this simple trick helped me to get rid of the problem.

  • Got Flash Builder Home/eclipse 
  • Open eclipse.ini
  • Change the vmargs( Xms & -Xmx) to  -Xms512m-Xmx1024m ( by default 256 & 512)
  • Save and restart Flash Builder
Note: You could change the Xms and Xmx value to the value suitable to your system. These values are just samples.

Happy hacking :)

Monday, June 20, 2011

Flex Builder 3 on Eclipse Ganymede

While this post might be obsolete, I believe its still useful.

I have had a problem this evening configuring Flex builder 3 with Eclipse. On the final step I was getting this annoying error and for that reason the installation fails:

Missing requirement: Flex Debug Plug-in for Eclipse 3.2 3.0.214193 (com.adobe.flexbuilder.debug.e32 3.0.214193) requires 'bundle org.eclipse.debug.ui [3.2.0,3.3.0)' but it could not be found.

The org.eclipse.debug.ui I have is much more higher version, so Flex shouldn't technically complain about this (3.5.x). I saw a lot of google posts asked by various users, but none had a solution. As I finally made it work, I thought it would be worth useful for somebody else out there.

Solution (Well precisely its not a solution, but a workaround)
  • Assuming you have already installed Flex builder.
  • Take a backup of : /com.adobe.flexbuilder.update.site/plugins/com.adobe.flexbuilder.debug.e32_3.0.214193.jar
  • unjar/open: com.adobe.flexbuilder.debug.e32_3.0.214193.jar
  • Edit META-INF/MANIFEST.MF
  • Remove the value : bundle-version="[3.2.0,3.3.0)" (which would be the last Require-Bundle section)
  • Update the Jar with the changes.
  • You might need to replace the modified com.adobe.flexbuilder.debug.e32_3.0.214193.jar into /plugins as well.
  • Restart and continue the flex update from eclipse.
This time the installation should pass. :)



Monday, May 31, 2010

java.lang.IllegalStateException: Error while loading manipulator

While trying to update eclipse plugins, you might get this error:
java.lang.IllegalStateException: Error while loading manipulator

The underlying error in the\workspace\.metadata\.log - would be something similar to:

!ENTRY org.eclipse.equinox.p2.engine 4 4 2010-06-01 00:19:00.483
!MESSAGE An error occurred while unconfiguring the items to uninstall
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2010-06-01 00:19:00.483
!MESSAGE session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Unconfigure, operand=[R]org.eclipse.equinox.common 3.5.0.v20090520-1800 --> [R]org.eclipse.equinox.common 3.5.1.R35x_v20090807-1100, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.SetStartLevelAction).
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2010-06-01 00:19:00.483
!MESSAGE Error while loading manipulator.
!STACK 0
java.lang.IllegalStateException: Error while loading manipulator.



Reason:
The eclipse has not loaded the equinox.launcher plugin.

What is Equinox and Why should I bother?

Equinox is the Osgi Framework implementation. So what? Alright, Eclipse uses OSGi as the basis for its plug-in system.

http://www.eclipse.org/equinox/

Solution:

We have to force load this plugin during startup by specifying it in the eclipse.ini.
  • Open the Eclipse.ini
  • Add the following line:
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
  • Restart Eclipse
  • Try updating/installing plugins