<DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>Hi</FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>I use two method in write Java-BON for create atom in my model but both method give error. </FONT><FONT face="Times New Roman" size=3>sample code is follow:</FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" color=#0000ff size=3><STRONG>plaese help me for solving errors</STRONG></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" color=#0000ff size=3>best regards</FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>s.karimi</FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>1)</FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>private JBuilder
builder;</FONT></DIV><FONT face="Times New Roman" size=3> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>private JBuilderObject focus;</FONT></DIV></FONT> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>public void invokeEx(JBuilder builder, JBuilderObject focus,Collection selected,int </FONT></FONT><FONT size=3><FONT face="Times New Roman">param)</FONT></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>{</FONT></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>this.builder = builder;</FONT></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New
Roman"><SPAN style="mso-spacerun: yes"> </SPAN>this.focus = focus;</FONT></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>//--------------------------------------------------------------------------------</FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>JBuilderFolder rootFolder = builder.getRootFolder();</FONT></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>JBuilderModel model=rootFolder.createNewModel("PIM");</FONT></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">
</SPAN>model.createNewAtom("class");</FONT></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>}</FONT></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT face="Times New Roman" color=#0000ff size=3><STRONG> <FONT color=#ff00ff>error</FONT>:attach file[1]</STRONG></FONT></o:p></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p><STRONG><FONT face="Times New Roman" color=#0000ff size=3>*****************************************</FONT></STRONG></o:p></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>2)</FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>private JBuilder builder;</FONT></DIV><FONT face="Times New Roman" size=3> <DIV class=MsoNormal
style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>private JBuilderObject focus;</FONT></DIV></FONT> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>public void invokeEx(JBuilder builder, JBuilderObject focus, ollection selected,int </FONT><FONT face="Times New Roman" size=3>param)</FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN><SPAN style="mso-spacerun: yes"> </SPAN>{</FONT></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>this.builder = builder;</FONT></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>this.focus =
focus;</FONT></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman" size=3>//--------------------------------------------------------------------------------</FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>JBuilderFolder rootFolder = builder.getRootFolder();</FONT></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>JBuilderModel model = rootFolder.getRootModel("PIM");</FONT></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>model.createNewAtom("class");</FONT></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm
0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes"> </SPAN>}</FONT></FONT></DIV><FONT face="Times New Roman" size=3> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p><FONT face="Times New Roman" color=#0000ff size=3><STRONG> <FONT color=#ff00ff>error</FONT>:attach file[2]</STRONG></FONT></o:p></DIV></FONT><p> 
<hr size=1>Want to start your own business? Learn how on <a href="http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/r-index">Yahoo! Small Business.</a>