PDA

View Full Version : How to remove the error Action resource not found in a xml file?


Sikha Devi
09-29-2006, 02:58 PM
I want to run blender from the menubar of a java based application. In the xml file for menubar i have coded in this way to create the menu "BLENDER".

<MENU TEXT="BLENDER" MNEMONIC="B">
<MENUITEM TEXT="Run" MNEMONIC="R">
<ACTION LANG="JAVA">
<METHOD>handleBlenderInterface</METHOD>
</ACTION>
</MENUITEM>
</MENU>

But when i run the application and click the menuitem run in BLENDER menu an error message comes in this way
Following actions donot exist
BLENDER:Run:handleBlenderInterface
Clicking the concerned buttons will not do the respective job unless the above errors are fixed.
Continue
If i click the continue button then the menubar with "BLENDER" menu comes. But when i click the run menuitem the following message comes.
Action resource handleBlenderInterface not found. Please check the correctness of .xml file.
I have defined this method in a different .java file. Plz guide me how i can remove this error so that the method "handleBlenderInterface" works.
Thanking you.
Sikha Devi

Alex Vincent
09-29-2006, 06:48 PM
As the computers on Star Trek would say, "Insufficient data." :)

The XML, as vanilla XML, looks okay. But what's the Java code behind it look like? I'm not sure we have a Java forum here...