INSTALL.txt 1.62 KB
Newer Older
1
2
3
INSTALLATION

The python orekit wrapper requires:
unknown's avatar
unknown committed
4
5
- a python installation (version 2.3-2.7)
- The JCC tool version 2.19 or later http://lucene.apache.org/pylucene/jcc/
6
7
- a java JDK

Petrus Hyvönen's avatar
Petrus Hyvönen committed
8
The easiest way to install the orekit wrapper is to use pre-build packages. A recipe for a conda package for orekit is included in the repository.
unknown's avatar
unknown committed
9
10
11
12
13
14
15
16
17
18

To build the wrapper from scratch:

Place the java wrapper source file in the orekit source tree. Compile an
orekit jar file including the wrapper.

Place this jar file together with apache-commons-math jar file in the same
directory as the provided build file, and execute the build. Note that
the end command of the build may need to be change according to your needs,
"install","bdist_winist" etc.
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

Hints:
One common failure is that the JCC package cannot reach the java virtual machine.
The location varies on different platforms and on different java versions.

Mint Linux
----------
for open-jdk it seems that the libjvm.so is not added to the library path by itself.
Add the path to libjvm.so to a file in /etc/ld.conf.d/ such as java.conf
such as:

	/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server

then run sudo ldconfig
check if it is there by: ldconfig -p | grep jvm

you might need to set the enviroment variable JCC_JDK. Example:

	export JCC_JDK=/usr/lib/jvm/java-7-openjdk-amd64

Windows
-------
Needs to set the variable JCC_JDK and include java items in the PATH. Example:

	set JCC_JDK=C:\Program Files (x86)\Java\jdk1.6.0_35
	set PATH=%JCC_JDK%\jre\bin\client;%JCC_JDK%\bin;%JCC_JDK%\lib;%PATH%

These can be etiher set in a bat file or directly in the computer environment variable dialog in windows.