If using Eclipse, you can ask it to add the necessary imports. (If not
using Eclipse, good luck writing Java :-)

In this case, I'm guessing something like "import
org.openbabel.vectorvint" or so...?

- Noel

On 12 February 2013 09:09, mounika <mouni07...@gmail.com> wrote:
> In Substructure search i am using the following code
>
> import org.openbabel.OBMol;
> import org.openbabel. OBConversion;
> import org.openbabel.OBSmartsPattern;
>
> import java.util.*;
> public class test1 {
>  public static void main(String args[])
> {
>  System.loadLibrary("openbabel_java");
> String molecule="CCCCCCC";
> OBMol obmol=new OBMol();
>  OBConversion obc=new OBConversion();
> OBSmartsPattern sp=new OBSmartsPattern();
> obc.SetInFormat("smi");
> obc.ReadString(obmol,molecule);
> String pattern="[#6][#6]";
> sp.Init(pattern);
> sp.Match(obmol);
> vectorvint matches=sp.GetMapList();
> System.out.println(matches);
>
> }}
>
>
> and the error i am getting
> vectorvint matches=sp.GetMapList();
> ^
>   symbol:   class vectorvint
>   location: class test1
>
> could you please tell me where exactly i have to change.
>
> Thank you
>
> Regards
> Mounika
>
>
>
> --
> View this message in context: 
> http://forums.openbabel.org/openbabel-substurcture-tp4655949.html
> Sent from the openbabel-devel mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Free Next-Gen Firewall Hardware Offer
> Buy your Sophos next-gen firewall before the end March 2013
> and get the hardware for free! Learn more.
> http://p.sf.net/sfu/sophos-d2d-feb
> _______________________________________________
> OpenBabel-Devel mailing list
> OpenBabel-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openbabel-devel

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to