Posts tagged "eclipse"

Java Development in Flash Builder 4 Standalone

Question: How can I edit Java code inside Flash Builder?

I’ve seen this question a quite few times on the forums. For users new to Eclipse and/or Flash Builder, it’s not immediately obvious. The short story is that since Flash Builder is based on Eclipse, users get the benefit of the Eclipse plug-in ecosystem. The classic Eclipse distribution is widely known for it’s Java IDE.

Here’s the step-by-step guide to installing the Java Development Tools (JDT) provided by Eclipse:

1) Open Flash Builder
2) Help > Install New Software…
3) At the top of the dialog, click “Add…” to add an update site URL
4) Specify any name and this URL http://download.eclipse.org/releases/galileo/. Press OK.
5) In the table of features, expand “Programming Languages” and select “Eclipse Java Development Tools”
6) Finish the wizard

You’ll be prompted to restart Flash Builder when installation is complete. From here, if you want to jump right into Java development, I recommend you switch perspectives (Window > Perspective > Other > Java). This configures the workbench window so that Java-related actions are the primary focus.

Click here for more information about Java development in Eclipse.

Share on Facebook

Installing Plug-ins in Standalone

The standalone version of Flash Builder 4 doesn’t come with any Eclipse update sites by default (see http//bugs.adobe.com/jira/browse/FB-26149). To see the standard set available plug-ins for Eclipse 3.5 (Galileo), add this update site http://download.eclipse.org/releases/galileo/.

Share on Facebook

Installing Subclipse in Flash Builder 4

Subclipse is one of the most frequently used plug-ins with Flash Builder. Here are some simple instructions for installing Subclipse and importing an existing project.

  1. Help > Install New Software…
  2. Add…
  3. Name=Subclipse, Location=http://subclipse.tigris.org/update_1.6.x
  4. Select the plug-ins shown in the screenshot below. Note: I’ve deselected a few plug-ins here in order to minimize plug-in dependencies that sometimes have issues resolving.

    subclipse1.png

  5. Finish the wizard. When prompted, restart Eclipse.
  6. On Mac, since JavaHL is not available, be sure to select SVNKit for your SVN interface
    1. Window > Preferences
    2. Team > SVN
    3. Change SVN Interface to SVNKit
  7. To import your projects from SVN
    1. File > Import…
    2. SVN > Checkout Projects from SVN
    3. Create or select a repository location
    4. Select your project root folder
    5. Finish
Share on Facebook

Snow Leopard, Cocoa and the 64-bit Problem

Let’s just get to the details:

Therefore, Snow Leopard users may see issues launching Flash Builder. To fix this, switch the default JVM to 32-bit http://kb2.adobe.com/cps/405/kb405284.html.

  1. Launch Applications > Utilities > Java Preferences
  2. Under Java Applications, drag and drop to re-order the Java versions so that a 32-bit version is the first one in the list

grab2.gif

If you have an account on our bug database, you can watch FB-15844 and be notified when the bug is fixed.
Share on Facebook

Patch for Snow Leopard line number scrolling bug

One of the most “popular” bugs in my bug queue has been FB-23023. Essentially, if you’re using Snow Leopard with Flash Builder and your window is on a secondary monitor, the line numbers in code editors stop scrolling. That’s a pretty annoying bug for someone who just bought a shiny new Macbook and hooked up an external monitor.
Luckily, the folks at Eclipse.org were able to narrow down the issue and referenced the fix that was applied for the future 3.6 release.
And to top it off, Rick Winscot went out of his way to build a patch that’s easily applied to standalone and plugin installations of Flash Builder. Thanks, Rick!
Update: To run Flash Builder with the -clean option, do the following:
  1. Open a terminal window
  2. Right click on “Adobe Flash Builder 4.app”, show package contents
  3. Expand Contents > MacOS
  4. Drag and drop “Adobe Flash Builder 4″ to the terminal window
  5. Add ” -clean”
  6. Run
Share on Facebook