2009-09-21 Noel O'Boyle <baoilleach@gmail.com>

* scripts/*: Copied + pasted the scripts directory from 22x as a number
	of commits were never merged.
This commit is contained in:
Noel O'Boyle
2009-09-21 11:12:00 +00:00
parent 36baf46d9e
commit afb12d1eb7
12 changed files with 737 additions and 599 deletions

View File

@@ -1,23 +1,30 @@
import org.openbabel.*
import org.openbabel.*;
public class OBTest
{
public OBTest()
{
System.loadLibrary("openbabel");
}
public OBTest()
{
System.loadLibrary("openbabel_java");
}
public void run()
{
OBConversion c = new OBConversion();
}
public void run()
{
OBConversion c = new OBConversion();
OBMol mol = new OBMol();
public static void main(String[] args)
{
System.out.println("Running OBTest...");
c.SetInFormat("smi");
c.ReadString(mol, "c1ccccc1");
OBTest test = new OBTest();
System.out.println("Benzene has " + mol.NumAtoms()
+ " atoms.");
}
test.run();
}
public static void main(String[] args)
{
System.out.println("Running OBTest...");
OBTest test = new OBTest();
test.run();
}
}