Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
4089ed51
Commit
4089ed51
authored
Mar 13, 2008
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
basic instructions for maven2
parent
670c37bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
77 deletions
+8
-77
bindings/java/README
bindings/java/README
+8
-23
bindings/java/createEclipseProject.sh
bindings/java/createEclipseProject.sh
+0
-54
No files found.
bindings/java/README
View file @
4089ed51
...
...
@@ -5,37 +5,22 @@
Compiling JVLC
--------------
In order to use these bindings you have to compile vlc from source, be sure
to use the latest git version (see http://wiki.videolan.org/Git for instructions
on how to get the latest vlc version).
JVLC uses maven2 as a project the management tool, take a look at
JVLC depends on JNA, you can download JNA from http://jna.dev.java.net .
http://maven.apache.org
JVLC is developed using the Sun JDK version 6, but version 5 should be fine too
.
to download and for general instructions on how to use it
.
Until the build.xml will be ready, you may compile jvlc issueing from the bindings
java folder:
To compile the project, run from the bindings/java folder:
mkdir output
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
mvn install
where <path-to> is the folder where the file jna.jar is contained
and in the output folder you'll find the compiled classes.
To import the jvlc project into the eclipse IDE:
You may also import jvlc in eclipse running the createEclipseProject.sh script.
mvn eclipse:eclipse
and the import as an existing Java project.
Running JVLC Example
--------------------
To run a Java VLC example issue (be sure you have an a.avi and a.mp3 files
in your user.dir folder):
java -cp .:<path-to>jna.jar -Djna.library.path=/usr/local/lib VLCExample
(if you have specified a prefix in configure, change /usr/local/lib to
PREFIX/lib)
Happy playing.
bindings/java/createEclipseProject.sh
deleted
100755 → 0
View file @
670c37bd
#!/bin/sh
mkdir
-p
jvlc-eclipse/src/main/java
mkdir
jvlc-eclipse/bin
echo
"<?xml version=
\"
1.0
\"
encoding=
\"
UTF-8
\"
?>"
>
jvlc-eclipse/.classpath
echo
"<classpath>"
>>
jvlc-eclipse/.classpath
echo
" <classpathentry kind=
\"
src
\"
path=
\"
src/main/java
\"
/>"
>>
jvlc-eclipse/.classpath
echo
" <classpathentry kind=
\"
con
\"
path=
\"
org.eclipse.jdt.launching.JRE_CONTAINER
\"
/>"
>>
jvlc-eclipse/.classpath
echo
" <classpathentry kind=
\"
output
\"
path=
\"
bin
\"
/>"
>>
jvlc-eclipse/.classpath
echo
"</classpath>"
>>
jvlc-eclipse/.classpath
echo
"<?xml version=
\"
1.0
\"
encoding=
\"
UTF-8
\"
?>"
>
jvlc-eclipse/.project
echo
"<projectDescription>"
>>
jvlc-eclipse/.project
echo
" <name>jvlc-eclipse</name>"
>>
jvlc-eclipse/.project
echo
" <comment></comment>"
>>
jvlc-eclipse/.project
echo
" <projects>"
>>
jvlc-eclipse/.project
echo
" </projects>"
>>
jvlc-eclipse/.project
echo
" <buildSpec>"
>>
jvlc-eclipse/.project
echo
" <buildCommand>"
>>
jvlc-eclipse/.project
echo
" <name>org.eclipse.jdt.core.javabuilder</name>"
>>
jvlc-eclipse/.project
echo
" <arguments>"
>>
jvlc-eclipse/.project
echo
" </arguments>"
>>
jvlc-eclipse/.project
echo
" </buildCommand>"
>>
jvlc-eclipse/.project
echo
" <buildCommand>"
>>
jvlc-eclipse/.project
echo
" <name>org.eclipse.pde.ManifestBuilder</name>"
>>
jvlc-eclipse/.project
echo
" <arguments>"
>>
jvlc-eclipse/.project
echo
" </arguments>"
>>
jvlc-eclipse/.project
echo
" </buildCommand>"
>>
jvlc-eclipse/.project
echo
" <buildCommand>"
>>
jvlc-eclipse/.project
echo
" <name>org.eclipse.pde.SchemaBuilder</name>"
>>
jvlc-eclipse/.project
echo
" <arguments>"
>>
jvlc-eclipse/.project
echo
" </arguments>"
>>
jvlc-eclipse/.project
echo
" </buildCommand>"
>>
jvlc-eclipse/.project
echo
" <buildCommand>"
>>
jvlc-eclipse/.project
echo
" <name>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</name>"
>>
jvlc-eclipse/.project
echo
" <arguments>"
>>
jvlc-eclipse/.project
echo
" </arguments>"
>>
jvlc-eclipse/.project
echo
" </buildCommand>"
>>
jvlc-eclipse/.project
echo
" </buildSpec>"
>>
jvlc-eclipse/.project
echo
" <natures>"
>>
jvlc-eclipse/.project
echo
" <nature>org.eclipse.jdt.core.javanature</nature>"
>>
jvlc-eclipse/.project
echo
" </natures>"
>>
jvlc-eclipse/.project
echo
"</projectDescription>"
>>
jvlc-eclipse/.project
cd
jvlc-eclipse/src/main/java
ln
-s
../../../../org
ln
-s
../../../../VlcClient.java
ln
-s
../../../../VLCExample.java
echo
"Project created in jvlc-eclipse folder. Import as existing project into eclipse."
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment