How to call java/c++ methods from flash

Friends,

How to call java/c++ methods from flash cs3/flash 8.0 ?? can you pls guide me on this… i required both flash and c++/java codes… tell me wher to keep those places… to run and see the desired output…

any suggestions pls.

Rajesh