File: README.txt

package info (click to toggle)
libsbml 5.10.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 141,800 kB
  • ctags: 98,793
  • sloc: cpp: 804,405; xml: 206,907; ansic: 66,144; cs: 52,916; java: 25,093; python: 23,449; sh: 9,847; perl: 8,414; makefile: 7,580; ruby: 4,760; csh: 3
file content (80 lines) | stat: -rw-r--r-- 2,745 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80

                            l i b S B M L

                        Java Example Programs

		  Nicolas Rodriguez, Ben Bornstein,
		     Michael Hucka, Akiya Jouraku



-----------
0. Building
-----------

A file called "Makefile" should have been generated automatically when
you ran the 'configure' program for libSBML.  If it is not present,
you must re-run 'configure' and give it the --with-java flag on the
command line.  Please see the file ../../README.txt or the libSBML
manual for more information.

With a Makefile in the directory, you can compile the Java examples by
executing the following command in a Unix command shell:

  % make


NOTE:

The evaluateMath.java example uses the following functions which were
not introduced until JDK 1.5: Math.cosh(), Math.log10(), Math.sinh(),
and Math.tanh().  You will therefore need at least version 1.5 of Java
to compile that example.


----------
1. Running
----------

To run the example programs, you must have libsbmlj.jar in your Java
CLASSPATH *and* you must also have set up your object library search
path to find the libSBML library file.  The exact method to use depends
on the particular operating system you are running, but all involve
putting the pathname of the installation directory in a certain
environment variable:

 System    Directory                              Environment variable
 ........  ................................       ....................
 Linux     directory containing libsbmlj.so       LD_LIBRARY_PATH
 MacOS X   directory containing libsbml.jnilib    DYLD_LIBRARY_PATH
 Windows   directory containing sbmlj.dll         PATH

For example, on MacOS X, if you configured libSBML with a prefix of
/usr/local and did a normal "make install", and you are using the
typical sh or bash shell in your terminal, you would need to execute

  export DYLD_LIBRARY_PATH="/usr/local/lib:$DYLD_LIBRARY_PATH"

or put the above in your shell's initialization file (.bashrc or
.profile in your home directory) and cause the shell to re-read the
initialization file.

To run the examples on some SBML files, a number of files are readily
available in ../sample-models/.  For example:

  % java printSBML     ../sample-models/from-spec/level-2/enzymekinetics.xml
  % java readSBML      ../sample-models/from-spec/level-2/units.xml



-------------------------------------------
File authors: B. Bornstein, Mike Hucka
Last Modified: $Date: 2011-02-08 19:49:42 +0100 (Tue, 08 Feb 2011) $
Last Modified By: $Author: luciansmith $
$HeadURL: https://svn.code.sf.net/p/sbml/code/trunk/libsbml/examples/java/README.txt $
-------------------------------------------

# The following is for [X]Emacs users.  Please leave in place.
# Local Variables:
# fill-column: 70
# End: