If I understand your question correctly, try this one http://corlan.org/2008/06/05/creating-a-combined-flexjava-project-in-flex-builder-wo-lcdsb lazeds/.
You need to install WTP plugin for Flex builder to compile java.
Thanks Jarno, my english is so bad. I kown this way, but in Flash builder 4, I can't do this way. I need this in Flash builder 4.
Okay! Im not sure does this work on Flash builder but try to install WTP manually. Im not even sure does it work but you can try. Download WTP package from url: http://download.eclipse.org/webtools/downloads/ and find the instructions to install it. You need to copy WTP jar files to Flash builder plugin folder or something...
Ok, I try this. I download wtp-sdk-R-3.1.2-20100211202452.zip.
Lets see. Thanks.
No sucess. I followed the steps but the plugins was not instaled, the flash builder is the same. Somebody knows another form? Or this not have solution?
If you're using standalone or plug-in with Eclipse 3.5+, use this update site http://download.eclipse.org/releases/galileo/
1) Help > Install New Software...
2) Add the update site http://download.eclipse.org/releases/galileo/
3) Under Programming Languages, choose "Eclipse Java Development Tools".
4) Finish the wizard
Jason San Jose
Software Engineer, Flash Builder
Perfect Jason, its work. thanks.