Closed sneumann closed 6 years ago
Hmm, I just ran it on the latest Github code and it worked with no error. Can you do a pull and see if it works?
I got the same problem; which I think it is connected to the version of java used for compilation. In the first trial I compiled everything using java7 installing rJava and rCDK. However I was getting: "Error in .jnew("org/guha/rcdk/view/ViewMolecule2D", molecule, as.integer(cellx), : java.lang.UnsupportedClassVersionError: org/guha/rcdk/view/ViewMolecule2D : Unsupported major.minor version 52.0"
when I changed to java8, I started to have problem compiling rJAVA, and the old rjava compiled with J7 was kept. while CDK was compiled with java8 with no errors.
The error message for view.molecule.2d will be :
"> view.molecule.2d(mols[[1]])
Error in .jnew("org/guha/rcdk/view/ViewMolecule2D", molecule, as.integer(width), :
java.lang.NoSuchMethodError:
Most probably we need to look to the compatibilty between java8 and rJava
Are you using the latest code from Github?
Yes, I installed from github. However now I found your example in other thread which works fine:
m <- parse.smiles("Cl.Cl.c1ccccc1-c1ccccc1 |m:1:4.5.6.7.8.9,3:10.11.12.13.14.15|")[[1]] dep <- get.depictor(width=300, height=300, style='nob') copy.image.to.clipboard(m, dep) img <- view.image.2d(m, dep)
The example view.molecule.2d(mols[[1]]) is from old turorial pdf.
Good that it works for you now. I should update the tutorial at one point
Hi,
if running the example from #14, I get 'cellx' not found: