mrcrowl
mrcrowl

Reputation: 1479

How can I make Flash Builder 4 launch browser on run?

I recently installed Adobe Flash Builder 4 in standalone mode on a new installation of Windows 7 x64.

I can load and build an existing Flex 4.1 project I have been working on, but when I go to run the project in the browser (Firefox 3.6.15), I get:

'Launching BensApp' has encountered a problem.

An internal error occurred during: 'Launching BensApp'

Clicking the Details >> button reveals:

java.lang.NullPointerException

My project is creating the SWF and container HTML page as expected, but fails to load the browser.

Upvotes: 2

Views: 1988

Answers (3)

Saygın Karahan
Saygın Karahan

Reputation: 177

Select "Run As" in Green Debug Button. It Fixed My Problem.

Upvotes: 0

mrcrowl
mrcrowl

Reputation: 1479

Ok. Finally nutted this out.

The problem was that Flash Builder was trying to run the ASP.NET web server at:

c:\Program Files (x86)\Microsoft Shared\9.0\WebDevServer.exe

This is the default location if you have VS2008 installed.

I only have VS2010 installed, which places these files at ...\Shared\10.0. The solution was to copy WebDevServer20.exe to the above location.

The other solution that would work is to change Flex Server \ Application Server type to "None\Other".

Upvotes: 1

garnertb
garnertb

Reputation: 9584

Check the launch configurations located in Project>Properties>Run/Debug Settings.

To open a browser when you run the project you will need to modify the 'URL or path to launch' parameter.

See the Adobe Flex help for more info: Managing Launch Configurations.

Upvotes: 0

Related Questions