X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=bindings%2Fjava%2FREADME;h=14f33aed03d7e59a83945fd1250fe6afee72d100;hb=1b0a5608ee16cea1577a10269a114467cee43af1;hp=6f2d0f8d45c31fa3fdad8c5a7be5990ac3e2f990;hpb=b2de137f9fcc1b5fc9998f0f2a934853ed009008;p=vlc diff --git a/bindings/java/README b/bindings/java/README index 6f2d0f8d45..14f33aed03 100644 --- a/bindings/java/README +++ b/bindings/java/README @@ -7,30 +7,26 @@ Usage 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 15823) by doing: +(or use at least revison 18443) by doing: svn co svn://svn.videolan.org/vlc/trunk vlc-trunk - bootstrap, clean and configure: + bootstrap, clean, set environment variables, configure and build: -./bootstrap && make distclean -./configure --enable-java-bindings && make && make install - - If you give a prefix be sure to change the PREFIX variable in the Makefile -from /usr/local to your prefix. +./bootstrap - 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 +export JAVA_HOME=/path/to/jvm +(for example i have JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun) -JINCLUDES -LIBJINCLUDES +./configure --enable-java-bindings && make && make install - In the next releases I will automate this process. + To run a Java VLC example issue (be sure you have an a.avi and a.mp3 files +in your user.dir folder): - To run a Java VLC example issue: +java -Djava.library.path=/usr/local/lib VLCExample -java -Djava.library.path=. VlcClient +(if you have specified a prefix in configure, change /usr/local/lib to +PREFIX/lib) Be sure your ldconfig can find libjawt.so and libmawt.so or you will get linking errors when you run the program.