hello i have a set of fragment acides.mol and a set of fragments amine.mol in
my disc and i wont to read an acide and an amin and to create an amino acide i
try with this code but i have an errorimport java.io.FileNotFoundException;
import java.io.InputStream;
import org.openscience.cdk.BioPolymer;
import org.openscience.cdk.exception.CDKException;
import org.openscience.cdk.io.MDLReader;
import org.openscience.cdk.tools.ProteinBuilderTool;
public class AA {
public static void main(String[] args) throws CDKException,
FileNotFoundException{
String filename1 = "C:/amine/amine_59.mol";
InputStream ins
=InputStream.class.getClass().getClassLoader().getResourceAsStream(filename1);
MDLReader reader = new MDLReader(ins);
String filename2 = "C:/acide/acide_1.mol";
InputStream in
=InputStream.class.getClass().getClassLoader().getResourceAsStream(filename2);
MDLReader read = new MDLReader(in);
BioPolymer crambin = ProteinBuilderTool.createProtein(
filename1+filename2 );
System.out.println("Crambin has " + crambin.getAtomCount() +" atoms.");
}
}the error is java.lang.NullPointerExceptioni wate your answer please
thanks
Le Vendredi 29 avril 2016 17h06, John M <john.wilkinson...@gmail.com> a
écrit :
Hi Hanouna,
Sorry I didn't see your other messages, they were marked as spam due the
writing style and yahoo.fr authentication failures.
If you're still having trouble building/using the CDK in an IDE (e.g. Eclipse)
I put together a guide here: https://github.com/cdk/cdk/wiki/Building-CDK
I've you're new CDK you should use the least release 1.5.14. Also there are
more relevant pages/updates on the GitHub wiki.
John
Regards,
John W May
john.wilkinson...@gmail.com
On 27 April 2016 at 19:39, hanouna nouna <hanounanouna...@yahoo.fr> wrote:
hello
i have to create an amino acide from a library of fragment acide and a library
of fragments amine if you can help me with packages of CDK that i have to use
that will be a big pleasur to me
and thank you so mutch
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Cdk-user mailing list
Cdk-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-user