Hi all,

I have the same issue as stated here:

http://www.mail-archive.com/[email protected]/msg01711.html

java.lang.IllegalAccessError: You requested the active parameter of type
org.openscience.cdk.renderer.generators.BasicSceneGenerator$Scale, but it
has not been registered yet. Did you make sure the IGeneratorParameter is
registered, by registring the appropriate IGenerator? Alternatively, you
can use getDefault() to query the default value for any parameter on the
classpath.

Code:

*Rectangle drawArea = new Rectangle(width, height);
        Image image = new BufferedImage(
                width, height, BufferedImage.TYPE_INT_RGB);

        StructureDiagramGenerator sdg = new StructureDiagramGenerator();
        sdg.setMolecule(mol);
        try {
            sdg.generateCoordinates();
        } catch (CDKException ex) {
            throw new ChemDBException(ex);
        }
        mol = sdg.getMolecule();

        GeometryTools.translateAllPositive(mol);

        // generators make the image elements
        ArrayList<IGenerator<IAtomContainer>> generators =
                new ArrayList<IGenerator<IAtomContainer>>();
        generators.add(new BasicBondGenerator());
        generators.add(new BasicAtomGenerator());

        // the renderer needs to have a toolkit-specific font manager
        AtomContainerRenderer renderer = new
AtomContainerRenderer(generators, new AWTFontManager());

        // the call to 'setup' only needs to be done on the first paint
        renderer.setup(mol, drawArea); //error happens here*

Any ideas
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to