]> git.sesse.net Git - vlc/blob - bindings/java/README
Suggest to check/set JAVA_HOME if compilation fails
[vlc] / bindings / java / README
1
2             First of all, this is a *developers* only version
3
4
5 Usage
6 -----
7
8  In order to use these bindings you have to compile vlc from source. I
9 recommend you to take the latest version from videolan svn repository
10 (or use at least revison 15823) by doing:
11
12 svn co svn://svn.videolan.org/vlc/trunk vlc-trunk
13
14  bootstrap, clean, set environment variables, configure and build:
15
16 ./bootstrap && make distclean
17
18 export JAVA_HOME=/path/to/jvm 
19 (for example i have JAVA_HOME=/usr/lib/j2sdk1.5-sun)
20
21 ./configure --enable-java-bindings && make && make install
22
23  If you give a prefix be sure to change the PREFIX variable in the Makefile
24 from /usr/local to your prefix.
25
26  Once you've done with vlc you can run make in jvlc directory. Be sure
27 you have gcj, gcjh and if you want to use the SUN Java compiler,
28 change the Makefile accordingly. You will probably need to change also 
29
30 JINCLUDES
31 LIBJINCLUDES
32
33  In the next releases I will automate this process.
34
35  To run a Java VLC example issue:
36
37 java -Djava.library.path=. VlcClient
38
39  Be sure your ldconfig can find libjawt.so and libmawt.so or you will
40 get linking errors when you run the program.
41
42  Happy playing.