]> git.sesse.net Git - vlc/blobdiff - bindings/java/README
some basic info on how to use mvn added
[vlc] / bindings / java / README
index 6b67ec99ff52346e07c4408ac059aa85f3021bb6..231d8d23d4e651de97899a7580badcc173b02d78 100644 (file)
@@ -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.