How to use jvlc library i.c.w eclipse to build a jvlc app:?:

*nix specific usage questions
HMIproject
New Cone
New Cone
Posts: 1
Joined: 12 Mar 2008 18:51

How to use jvlc library i.c.w eclipse to build a jvlc app:?:

Postby HMIproject » 14 Mar 2008 16:55

Hi Guys, :)

First I would like to say that this forum is full of knowledge and I have searched this forum for many days now, and i still can't find out how to import jvlc into eclipse to build an application that has the possibillity to play movies etc.

I've downloaded the .jar file from http://trac.videolan.org/jvlc/wiki/download
and in a terminal i have tried the following without succes:

Code: Select all

********@*********:~$ java -Djna.library.path=/usr/local/lib jvlc*.jar Exception in thread "main" java.lang.NoClassDefFoundError: jvlc-0/9/0-20080309-linux_x86-32/jar
As you can see this did not work, and I don't know why :oops:
I am using Ubuntu 7.10.

I also have noticed the fact that the example codes is not available any more when I use the link .

http://trac.videolan.org/jvlc/browser/j ... lient.java :?

I am a patient guy and I want to do things my self but this time i don't know where to start. :?

So my goal is to have an application which makes it possible to play movies etc and also the application should have the navigational properties such as " play", "stop" etc. :)

Can any one please guide me :?: :oops:

thanks in advance :!:

kind regards,

H.

littlejohn
Blank Cone
Blank Cone
Posts: 73
Joined: 04 May 2006 14:59

Re: How to use jvlc library i.c.w eclipse to build a jvlc app:?:

Postby littlejohn » 17 Mar 2008 22:55

Hi Guys, :)

First I would like to say that this forum is full of knowledge and I have searched this forum for many days now, and i still can't find out how to import jvlc into eclipse to build an application that has the possibillity to play movies etc.
Hi,
you need maven2 installed (http://maven.apache.org). Once you have installed maven, from the bindings/java folder type:
mvn install
mvn eclipse:eclipse

then import the project as an Existing Java Project into Eclipse from the bindings/java/core folder.
I also have noticed the fact that the example codes is not available any more when I use the link .

http://trac.videolan.org/jvlc/browser/j ... lient.java :?
The link has been removed. The bindings/java/samples contains sample code.

Thanks for trying JVLC,
Filippo

videolanuser731
New Cone
New Cone
Posts: 9
Joined: 18 Mar 2008 17:41

Re: How to use jvlc library i.c.w eclipse to build a jvlc app:?:

Postby videolanuser731 » 18 Mar 2008 17:43

Hello littlejohn,

When I try to run "maven install" as you ask it gives the following error :

vlc-trunk/bindings/java$ mvn -e install
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:373)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
... 16 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Mar 18 17:39:57 CET 2008
[INFO] Final Memory: 3M/6M
[INFO] ------------------------------------------------------------------------

littlejohn
Blank Cone
Blank Cone
Posts: 73
Joined: 04 May 2006 14:59

Re: How to use jvlc library i.c.w eclipse to build a jvlc app:?:

Postby littlejohn » 18 Mar 2008 18:00

Hello littlejohn,

When I try to run "maven install" as you ask it gives the following error :

vlc-trunk/bindings/java$ mvn -e install
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.
[INFO] ------------------------------------------------------------------------
It seems you are missing the pom.xml file in the bindings/java folder. Please be sure you are using git HEAD.

Cheers,
Filippo

videolanuser731
New Cone
New Cone
Posts: 9
Joined: 18 Mar 2008 17:41

Re: How to use jvlc library i.c.w eclipse to build a jvlc app:?:

Postby videolanuser731 » 19 Mar 2008 10:55

So "git clone git://git.videolan.org/vlc.git" will not get me the same source as "svn checkout svn://svn.videolan.org/vlc/trunk vlc-trunk" ?

littlejohn
Blank Cone
Blank Cone
Posts: 73
Joined: 04 May 2006 14:59

Re: How to use jvlc library i.c.w eclipse to build a jvlc app:?:

Postby littlejohn » 19 Mar 2008 10:58

So "git clone git://git.videolan.org/vlc.git" will not get me the same source as "svn checkout svn://svn.videolan.org/vlc/trunk vlc-trunk" ?

SVN is @Deprecated ;). Use git.

Cheers,
Filippo

videolanuser731
New Cone
New Cone
Posts: 9
Joined: 18 Mar 2008 17:41

Re: How to use jvlc library i.c.w eclipse to build a jvlc app:?:

Postby videolanuser731 » 19 Mar 2008 11:58

Ok thanks.

I found the python bindings are nice too, do you know if they use the same VLC API ?

saurabh
Blank Cone
Blank Cone
Posts: 25
Joined: 05 Aug 2008 08:19
Operating System: Linux
Location: Pune, India

Re: How to use jvlc library i.c.w eclipse to build a jvlc app:?:

Postby saurabh » 06 Aug 2008 14:14

Hi folks...
I am using th sample application on windows..
Could anyone help me to how to resolve these problems...

[00000001] main libvlc error: no memcpy module matched "any"
[00000008] main interface error: no interface module matched "hotkeys,none"
[00000008] main interface error: no suitable interface module
[00000001] main libvlc error: interface "hotkeys,none" initialization failed
[00000009] main libvlc error: no memcpy module matched "any"
[00000014] main interface error: no interface module matched "hotkeys,none"
[00000014] main interface error: no suitable interface module
[00000009] main libvlc error: interface "hotkeys,none" initialization failed
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: org.videolan.jvlc.JVLCCanvas.paint(Ljava/awt/Graphics;)V
at org.videolan.jvlc.JVLCCanvas.paint(Native Method)
at sun.awt.RepaintArea.paintComponent(Unknown Source)
at sun.awt.RepaintArea.paint(Unknown Source)
at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
[00000017] main access error: no access2 module matched "any"
[00000015] main input error: open of `D:\Saurabh\workspace\eclipse\workspace\vlcjava\a.avi' failed: could not create access: no access2 module matched "any"


Thanks in advance..

littlejohn
Blank Cone
Blank Cone
Posts: 73
Joined: 04 May 2006 14:59

Re: How to use jvlc library i.c.w eclipse to build a jvlc app:?:

Postby littlejohn » 06 Aug 2008 14:25

Hi,
you are using an old version of the java bindings. Please get the new ones from git.

Cheers,
Filippo


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 14 guests