The steps involved are simple as below:
1. Save the jar file where forms jar files are saved
Usually {FormsInstalledPath}\forms\java folder
2. Open Registry editor (REGEDIT)
Browse to the following Key
HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE/KEY_DevSuiteHome1
3. Add Java archive name in the Name FORMS_BUILDER_CLASSPATH
4. Now open Form Builder and create new form.
5. Open Menu Program > Import Java Classes and find your java class added and Import.
Enjoy