mirror of
https://github.com/openbabel/openbabel.git
synced 2025-02-25 18:55:23 -06:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user