X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bindings%2Fjava%2FREADME;h=231d8d23d4e651de97899a7580badcc173b02d78;hb=54b65bedc9a2abe2461f650c0d40b387f0839174;hp=6b67ec99ff52346e07c4408ac059aa85f3021bb6;hpb=64c616acd22a52a62cbfd1e9916174da858a10db;p=vlc diff --git a/bindings/java/README b/bindings/java/README index 6b67ec99ff..231d8d23d4 100644 --- a/bindings/java/README +++ b/bindings/java/README @@ -2,41 +2,39 @@ First of all, this is a *developers* only version -Usage ------ +How to compile JVLC +------------------- - In order to use these bindings you have to compile vlc from source. I -recommend you to take the latest version from videolan svn repository -(or use at least revison 17559) by doing: + JVLC uses maven2 as a project the management tool, take a look at -svn co svn://svn.videolan.org/vlc/trunk vlc-trunk +http://maven.apache.org - bootstrap, clean, set environment variables, configure and build: + to download and for general instructions on how to use it. -./bootstrap && make distclean + To compile the project, run from the bindings/java folder: -export JAVA_HOME=/path/to/jvm -(for example i have JAVA_HOME=/usr/lib/j2sdk1.5-sun) +mvn install -./configure --enable-java-bindings && make && make install + To import the jvlc project into the eclipse IDE: - If you give a prefix be sure to change the PREFIX variable in the Makefile -from /usr/local to your prefix. +mvn eclipse:eclipse - Once you've done with vlc you can run make in jvlc directory. Be sure -you have gcj, gcjh and if you want to use the SUN Java compiler, -change the Makefile accordingly. You will probably need to change also + and then import as an existing Java project. -JINCLUDES -LIBJINCLUDES - In the next releases I will automate this process. +How to run the sample client +---------------------------- - To run a Java VLC example issue: + 1. mvn install (in bindings/java) + + 2. mvn package exec:java (in bindings/java/samples/client) + + +How to create the jvlc site +--------------------------- + + 1. mvn site -java -Djava.library.path=. VlcClient - Be sure your ldconfig can find libjawt.so and libmawt.so or you will -get linking errors when you run the program. Happy playing.