Discussion List Archives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Imgcif-l] java binding for CBFlib

There is a CBFlib 0.8.1 release on sourceforge to support java
bindings.  Our thanks to Peter Chang <Peter.Chang at Diamond dot ac
dot uk> for this very useful kit.

The CBFlib_bleeding_edge repositories on sourceforge and blondie
have been updated with these changes.

See

http://downloads.sourceforge.net/cbflib/CBFlib-0.8.1-23Feb09.tar.gz

Please report problems to this list.  The Changes are noted below.
We are trying for a base release with these and other changes by
April.  Your comments would be greatly appreciated.


   -- Herbert

=============================================================
On 21 Feb 2009, a CBFlib 0.8.1 release was created from the
CBFlib 0.8.0 release by adding Java wrapper classes from
Peter Chang of DLS with minor updates on 23 Feb 2009.  In
order to do the java tests for these mods, you need to
define the environment variable JDKDIR with the location of
the Java develpment kit and you need to have swig installed.
Examples of JDKDIR are:

    export JDKDIR=/dls_sw/dasc/jdk/jdk1.6_i586-current;
    export JDKDIR=/dls_sw/dasc/jdk/jdk1.6_x64-current;
    export JDKDIR=/usr/lib/jdk1.6.0_10;

The Mac OS X version has not been implemented yet


Here are Peter Chang's release notes:

An initial set of Java wrapper classes for CBFlib-0.8.0 has
been implemented using SWIG. A pair of example programs
(testcbf.c and testcbf.java) are included that show the
similarities and differences of using CBFlib in C and Java.

This has been tested using Red Hat EL 4.7 WS for i568 and
Red Hat EL 5.3 WS for x86_64 with Sun's JDK.

In addition to the static methods in org.iucr.cbflib.cbf,
six helper classes are included: four wrapper classes for C
pointers that point to size_t (sizetP), int (intP), unsigned
int (uintP) and double (doubleP); two wrapper classes for C
arrays that hold int (intArray) and double (doubleArray).
Also, some helper functions for a pointer to pointer to char
(charPP_*) aid the output of strings, and pointer casts to
void (int_void and double_void). Finally, a constructor and
a destructor has been added to the cbf_handle_struct class.

Peter.Chang@diamond.ac.uk

23/02/2009



-- 
=====================================================
  Herbert J. Bernstein, Professor of Computer Science
    Dowling College, Kramer Science Center, KSC 121
         Idle Hour Blvd, Oakdale, NY, 11769

                  +1-631-244-3035
                  yaya@dowling.edu
=====================================================
_______________________________________________
imgcif-l mailing list
imgcif-l@iucr.org
http://scripts.iucr.org/mailman/listinfo/imgcif-l

Reply to: [list | sender only]
International Union of Crystallography

Scientific Union Member of the International Science Council (admitted 1947). Member of CODATA, the ISC Committee on Data. Partner with UNESCO, the United Nations Educational, Scientific and Cultural Organization in the International Year of Crystallography 2014.

International Science Council Scientific Freedom Policy

The IUCr observes the basic policy of non-discrimination and affirms the right and freedom of scientists to associate in international scientific activity without regard to such factors as ethnic origin, religion, citizenship, language, political stance, gender, sex or age, in accordance with the Statutes of the International Council for Science.