public static void deployInChI() throws Exception {
ResourceGetter rg = new ResourceGetter("uk/ac/cam/ch/wwmm/oscar3/deployment/resources/");
File inchiFile = null;
if(System.getProperty("os.name").equals("Linux")) {
inchiFile = new File("cInChI-1");
rg.writeToFile("cInChI-1.bin", inchiFile);
Runtime.getRuntime().exec("chmod a+x " + inchiFile.getAbsolutePath());
} else if(System.getProperty("os.name").startsWith("Windows")) {
inchiFile = new File("cInChI-1.exe");
rg.writeToFile("cInChI-1.exe", inchiFile);
}