I have configure selenium RC with netbean and added selenium java client driver jar file in test lib and I have run test

cases in java formatted code But run is failed

Can anybody tell me what can I do for success of test cases

Scenerio for that
1) Record test on Selenium IDE
2) Convert into java formet
3) Add selenium-java client-driver.jar file in netbean IDE
4) Start Selenium RC server
5) Copy and paste selenium IDE recorded test cases in IDE
6) run this code

Test case is failed but when I run this code in html formet on selenium IDE its successfully runing

Can anybody help me