Home >
Fixed: "An internal build error has occurred" with FB3 & Galileo
James Ward surprised us today with a patch for Flex Builder 3 that makes it work with Eclipse Galileo SR1. James solved the dreaded "An internal build error has occurred" problem. His solution was to replace ProblemManager with his own implementation, written in about 200 lines of code to the same IProblemManager interface as the original class. This is a 'clean room' implementation, created without looking at the Flex Builder source code.
Try it out. It works great for me on Windows. James says it works with Linux. I expect it should work on Mac too. These instructions modify the instance of the Flex Builder 3 plug-in shared between Ganymede SR2 and Galileo SR1. The patch seems to be backwards compatible; my testing shows that the Flex Builder 3 plug-in continues to work fine with Ganymede SR2.
Below are Windows installation instructions. These steps take a long time to perform if you are starting from scratch. If you already have Ganymede SR2 working with the Flex Builder plug-in then you can start at step 4 and the remaining steps should only take a few minutes:
- Install Eclipse Ganymede SR2 (necessary to install Flex Builder Plugin into Galileo.)
- Install the Flex Builder Plugin into Ganymede SR2.
- Install Galileo SR1. If you are working with BlazeDS or LCDS then be sure to install the version entitle "Eclipse IDE for Java EE Developers (189 MB)."
- Follow these instructions to integrate Flex Builder Plugin with Galileo SR1. Let's call the directory that you installed Flex Builder Plugin for Galileo into {FBPG}.
- Back up zornproject.jar. My copy was found in {FBPG}\eclipse\plugins\com.adobe.flexbuilder.project_3.0.214193\zornproject.jar
- Open {FBPG}\eclipse\plugins\com.adobe.flexbuilder.project_3.0.214193\zornproject.jar with WinRAR or your favorite ZIP manager.
- Drill into the com/adobe/flexbuilder/project/compiler/internal directory and delete ProblemManager*.class.
- Add James' ProblemManager.class to the same directory in the zip file.
- Save the zip file.
- Start Galileo SR1.
- Buy James a beer next time you see him.
Give Eclipse Europa and Ganymede SR2 a shove! Galileo SR1 is the current mainstream Eclipse version, and I'm grateful to James to making it happen.
Update: Here is some background information on how the Flex Builder Plugin works with Eclipse.
Buy the book and learn more FB tips.
_______________________________





Facebook Application Development
Thanks, Mike! Unfortunately, I wasn't able to get this working on my Mac (10.6.1) and thought I'd post some comments in case another Mac-er comes by.
I got everything working in terms of step 4 (creating the 'link' to the Flex Plug-in installation for Eclipse 3.5).
When I added James' ProblemManager.class in the same directory (zornproject.jar) and re-zipped it (renaming it to JAR), I could no longer use the Flex Builder Plug-in in Eclipse 3.4 or 3.5. I had to put the original zornproject.jar back in place.
One question, Mike: in item 7 you mention deleting ProblemManager*.class. Does that mean delete ALL ProblemManager classes and just replace with the single class James created?
That might have been where I went awry ...
Once you replace ProblemManager.class, the other files will be ignored because they are private inner classes that are not referenced by the rest of the application. Delete them or not, as you wish.
Perhaps the way you recreated the JAR is the source of your problem?
Good to know, thanks, Mike!
I think it must be how I created the JAR, so I'm trying again and will report back how it goes.
Hey Craig,
Make sure you put the patched ProblemManager.class in the right directory:
com/adobe/flexbuilder/project/compiler/internal
Also if you get errors please post them on my blog or here. You can find the errors in the /.metadata/.log file.
One last thing... This patch requires Java 1.6.
-James
Thanks, James(and Mike)!
I definitely put the ProblemManager.class in the correct directory - kept checking that to make sure it wasn't my screw up :). I am running Java 1.6.0_15 as my default JRE/JVM.
I also compiled the JAR properly but still get errors. The log file is fairly long (I cleared it before trying to get FB 3 going in Eclipse 3.5 one last time). I'd hate to fill up too much space with the log details. I can email it or post (here or your blog) but didn't want to without making sure it was kosher first.
Best,
Craig
Craig, You can email the log file to me:
jaward at adobe dot com
Just FYI I got Flash Builder 4 beta 1 working with Galileo on Mac OSX 10.6.1 for a little while now (haven't tried with Flex Builder though) by downloading the Galileo distro on Yoxos website (http://ondemand.yoxos.com/geteclipse/start).
There was no need for any particular manipulation or anything as long as you choose (on Yoxos' website) to download the "MacOS X Carbon (deprecated)" version and not the default MacOS X Cocoa. Aside from that I was able to install pretty much any plugin with that.
Cheers,
Gilles
Thanks to both, James and Mike, i easily got it working!
But, as i'm using it and making syntax errors, it also happens that some of them won't disappear after i correct them. I have to manualy remove them in the Problems view to successfully compile. Is anybody else experiencing this? I have Eclipse Java EE IDE for Web Developers, Build: 20090920-1017 and FB3 plugin v3.0.214193.
Thanks for writing up that patch - I've needed to use Eclipse 3.5 and Flex Builder 3.4 for a while and that bug was killing me.
I did have a little trouble re-creating the jar file. When I tried to do it using regular zip utilities the resulting jar did not work. Using ant's unjar and jar task fixed the problem.
I do not see the problem mentioned above requiring problems to be removed by hand.
It worked for me,
I've just extracted full folder structure from James' patch and then from my 7-Zip context menu I've simply chosen "Add to archive..." pointing it to zornproject.jar :)
Thanks a lot, cheers.
Hi all,
I gave all the above a try without much success. I'm running Eclipse SDK 3.5.0 build I20090611-1540 and the Flex Builder Plugin 3.0.214193. I've prepended that "path=" in the eclipse configuration, replaced the ProblemManager class as described above (using both 7zip and the jar command line), but nothing will work. All I get is the "Unable to create the selected preference page. An error occurred while automatically activating bundle com.adobe.flexbuilder.editors.common (281)." message everytime I try to switch to a Flex perspective.
I'm also seeing a no class found exception regarding com/adobe/flexbuilder/utils/osnative/NativeControl.
The only thing I see different when compared to the other posts is that I'm using the 64-bit versions of Eclipse and JVM. I don't think this would have any effect on the problem, but I could be wrong. Any help would be appreciated. Thanks!
Hello All,
Has any one had any luck doing these steps for windows 7 64 bit? I can't seem to make it work too. :(
Thank you both! Absolutely brilliant! Saved my day:)
Thank you both! Absolutely brilliant! Saved my day:)
For those who's still struggling: it worked for me with Galileo (3.5.1) and FB 3.0.2 pair.
For this configuration the path is: FB_HOME_DIR/plugins/com.adobe.flexbuilder.project_3.0.214193
Great article!
It helped a lot, thx!
greetings,
Markus
Well I just got the Flex Builder Plug-In working with Eclipse Galileo but it was a challenge. Here is the basic steps and the web links below provide more information.
1] You need to install the Ganimede version of Eclipse first and then install the Flex plug-in of top of it as this can not be done on top of Galileo.
2] Next you install the Galileo Eclipse in a different location in your PC.
3] Next create the links directory inside Galileo and put a link to the Flex Builder plug-in.
4] Finally merge the Flex builder entries from the Ganimede install into the Galileo install. This entries are located on \configuration\org.eclipse.equinox.simpleconfigurator\bundles
Without the last step 4] nothing will happen. Also copy the file “startup_fb” from the Ganimede area to the Galileo area.
http://blog.flashgen.com/2009/04/09/reconnecting-flex-builder-plug-in-to-eclipse/
http://www.insideria.com/2009/09/fixed-an-internal-build-error.html
I do not think steps 5 – 11 above are needed because I backed them out and it still worked.
http://cambiatablog.wordpress.com/2009/08/04/flexbuilder-3-as-plugin-in-eclipse-3-5-galileo/
Thanks to all of the posters in the above links!!!!
Thank you for your comment! It has been added to the moderation queue and will be published here if approved by the webmaster.
The new Adobe Flash Builder 4 (Flex Builder) is still built on the older Ganimede version of Eclipse. The same instructions as above will work to get the new FB4 plug-in working. I have tried it successfully on the Spring IDE which is Eclipse Based (Gallileo 3.5).
Hi ,
I have issues very very similar to Craig Kaminsky. I am on a Mac OS X 10.6, with Java 1.6 in a Galileo installation. Can you please let me know how you guys fixed this? I followed the exact sequence of steps and now, my eclipse-fb refuses to open.
Thanks,
Rajesh
Hi ,
I have issues very very similar to Craig Kaminsky. I am on a Mac OS X 10.6, with Java 1.6 in a Galileo installation. Can you please let me know how you guys fixed this? I followed the exact sequence of steps and now, my eclipse-fb refuses to open.
Thanks,
Rajesh