We are using JHS11gTP with Jdev 11g 18.104.22.168.0.
I am trying to run the forms2adf generator in JDEveloper. I select an .fmb file and then i get a validation failed message saying
*"Oracle Forms needs to be installed on this machine to process forms .fmb files*
*To process form modules without oracle forms installed you should first run the frmf2xml utility with command line argument 'USE_PROPERTY_IDS=YES' on a machien with forms installed, and then select the .xml files created by this utility here."*
First of all, i do have forms installed on my machine. So i am not sure why I am getting the message above. Is there anyway i can configure JHS plugin to point it to the forms environment/exe etc.?
Secondly, when i do run the the Forms2XML utliity with -DUSE_PROPERTY_IDS=yes, i still get the same message. What should i be doing?
We test whether Forms is installed by using a command that is also used by the frmf2xml utility:
You could make your own java class with this statement (you need to import oracle.forms.jdapi.Jdapi), and add the frmjdapi.jar and frmxmltools.jar files to the project, and see what happens. These jar files can be found in [jdev_home]\jdev\extensions\oracle.jheadstart.11.1.1\designtime\lib
Well, making this class and running this will help us finding out the cause of issue 1.
The JHS wizard thinks Forms is not installed, while it is.
By running the same code that checks for Forms install outside JHS wizard in your own class, we can try to isolate the problem.
I had similar issue today. I tried the suggestion of running Jdapi.setFailSubclassLoad(true); in a separate java class to see the error. The error I was getting was
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Oracle\OracleForms11gR2\Oracle_FRHome1\bin\frmjapi.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at oracle.forms.jdapi.Jdapi.<clinit>(Unknown Source)
Process exited with exit code 1.
The reason was that my operating system is windows 7 64 bit and I installed the 64 bit version of Oracle Forms on my machine. However, the jdeveloper installation was using a 32 bit java. So, I changed my Jdeveloper to use the 64 bit java in the jdev.conf file and then it worked.