The source code may use or refer to content in a local workspace. This Bioclipse workspace used can be found on GitHub.
mol = cdk.fromSMILES("COC")
println mol
To run this code, you first need to install
Bacting (Groovy) or
pyBacting (Python).
@Grab(group='io.github.egonw.bacting', module='managers-cdk', version='0.1.2')
workspaceRoot = "../ws"
cdk = new net.bioclipse.managers.CDKManager(workspaceRoot);
mol = cdk.fromSMILES("COC")
println mol
CDKMolecule:C2H6O