]> git.sesse.net Git - vlc/blob - bindings/java/README
2e30930f09bdae2e1a4c40b328cae0721c20b7be
[vlc] / bindings / java / README
1
2             First of all, this is a *developers* only version
3
4
5 Compiling JVLC
6 --------------
7
8  In order to use these bindings you have to compile vlc from source, be sure
9 to use the latest git version (see http://wiki.videolan.org/Git for instructions
10 on how to get the latest vlc version).
11
12  JVLC depends on JNA, you can download JNA from http://jna.dev.java.net .
13
14  JVLC is developed using the Sun JDK version 6, but version 5 should be fine too.
15
16  Until the build.xml will be ready, you may compile jvlc issueing from the bindings
17 java folder:
18
19 mkdir output
20 javac -d output -cp <path-to>/jna.jar -g org/videolan/jvlc/internal/*.java org/videolan/jvlc/event/*.java  org/videolan/jvlc/*.java VLCExample.java VlcClient.java
21
22  where <path-to> is the folder where the file jna.jar is contained
23  and in the output folder you'll find the compiled classes.
24
25  You may also import jvlc in eclipse running the createEclipseProject.sh script.
26
27
28 Running JVLC Example
29 --------------------
30
31  To run a Java VLC example issue (be sure you have an a.avi and a.mp3 files
32 in your user.dir folder):
33
34 java -cp .:<path-to>jna.jar -Djna.library.path=/usr/local/lib VLCExample
35
36
37 (if you have specified a prefix in configure, change /usr/local/lib to 
38 PREFIX/lib)
39
40
41  Happy playing.