Published February 27, 2008 | https://doi.org/10.59350/g5s78-zqk90

CDK is now available from your nearest Debian mirror

Creators & Contributors

Some days have passed , and the Debian mirrors have now picked up the CDK package (unstable only so far), allowing you to sudo aptitude install libcdk-java from your favorite local mirror. The details are available from this packages.debian.org/libcdk-java page. The fact that it is listed as contrib is a small mistake; the package is really main material.

Now, also make sure to install BeanShell (sudo aptitude install bsh), which allows you to start scripting the CDK. For example, consider this simple script:

import org.openscience.cdk.Atom;
Atom atom = new Atom("C");
print(atom);

Save this as content of a file simpleExample.bsh, and run the bsh program to run the script. You will have to set the CLASSPATH, so the full command looks like this on my Linux desktop:

CLASSPATH=/usr/share/java/cdk-interfaces.jar:/usr/share/java/cdk-core.jar:/usr/share/java/cdk-data.jar:/usr/share/java/vecmath1.2-1.14.jar bsh simpleExample.bsh

A wrapper script cdkbsh that adds the CLASSPATH seems desirable here :) But you get the point.

Interestingly, BeanShell also comes with a graphical user interface, as well as a command line based scripting environment. Both make perfect set ups for quickly testing some code. The GUI version xbsh looks like (don't forget to set the CLASSPATH):

Additional details

Description

Some days have passed , and the Debian mirrors have now picked up the CDK package (unstable only so far), allowing you to sudo aptitude install libcdk-java from your favorite local mirror. The details are available from this packages.debian.org/libcdk-java page. The fact that it is listed as contrib is a small mistake; the package is really main material.

Identifiers

UUID
75e282ae-01f1-42d0-b377-4d819c840c6f
GUID
https://doi.org/10.59350/g5s78-zqk90
URL
https://chem-bla-ics.linkedchemistry.info/2008/02/27/cdk-is-now-available-from-your-nearest.html

Dates

Issued
2008-02-27T00:00:00
Updated
2025-08-17T00:00:00