I am trying to use a Java UFL in Crystal Reports Designer 2008 and used the following guide:
However, I never see the "MyLibrary" UFL in "Additional Functions".
I took the following steps:
1. Created the UFL using eclipse and entered in the .classpath file the location of CrystalFormulas.jar and CrystalReportingCommon.jar; NOTE I placed all the files under root thus there are no packages.
2. Exported all my files as a jar file named "MyLibrary"
3. Took the "MyLibrary.jar" and placed it in "C:Program FilesBusiness ObjectsCommon4.0javalib"
4. Went to my "Environment Variables" and added the following files in the CLASSPATH under the "System variables"
pathCrystalFormulas.jar
pathCrystalReportingCommon.jar
pathu211java.jar
pathlog4j.jar
pathicu4j.jar
5. Ensured that the "JAVA_HOME" in the "System Variable" was pointing to "C:Program FilesJavajdk1.6.0_07"
6. Opened the "regedit" and went to HKEY_LOCAL_MACHINESOFTWAREBusiness ObjectsSuite 12Crystal Reports then created a sub key New>String Value and name it JREPath. Then I entered the value pathjvm.dll
7.Opened my CRConfig.xml file and entered in the "ExternalFunctionLibraryClassnNames"; "MyLibrary"
8. I included all the paths of the above jar files in the Classpath of the "CRConfig.xml" file
9. I checked that the u211java.dll was in "C:Program FilesBusiness ObjectsBusinessObjects Enterprise 12.0win32_x86" path.
10 I restarted my computer.
I have also checked other forums for the solution and I have unable to make my UFL work.
Any suggestions?
Thanks for your help.
Valentine