Sure thing! Is the code sufficient, or would you need a runnable jar?
package TestClasses;
import org.openbabel.OBConversion;
import org.openbabel.OBMol;
public class TestOBWriteFile {
public static void main(String[] args) {
System.load("/Applications/OpenBabel/openbabel-2.2.3/scripts/java/libopenbabel.jnilib");
OBMol mol=new OBMol();
OBConversion obc=new OBConversion();
boolean SetSuccessful=obc.SetInAndOutFormats("pdb", "pdb");
if (SetSuccessful) {
obc.ReadFile(mol, "/Users/max/propane.pdb");
obc.WriteFile(mol, "/Users/max/propaneOut.pdb");
}
}
}
Thank you so much for your help!
Best,
Max
--
View this message in context:
http://forums.openbabel.org/Invalid-memory-access-during-OBConversion-WriteFile-tp4655729p4655739.html
Sent from the General discussion mailing list archive at Nabble.com.
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
OpenBabel-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss