2016-09-08 5 views
-1

Ich teste vlcj zum ersten Mal nach this tutorial, aber wenn ich es laufen bekomme ich diesen Fehler-Ausgang:Probleme mit vlcj.jar zur Lauf

cd C:\Users\abolfazl\Documents\NetBeansProjects\testplayer; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_05" cmd /c "\"\"C:\\Program Files\\NetBeans 8.0\\java\\maven\\bin\\mvn.bat\" -Dexec.args=\"-classpath %classpath com.mycompany.testplayer.InformationLib\" -Dexec.executable=\"C:\\Program Files\\Java\\jdk1.8.0_05\\bin\\java.exe\" -DnetbeansProjectMappings= -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.0\\java\\maven-nblib\\netbeans-eventspy.jar\" org.codehaus.mojo:exec-maven-plugin:1.2.1:exec\"" 
Running NetBeans Compile On Save execution. Phase execution is skipped and output directories of dependency projects (with Compile on Save turned on) will be used instead of their jar artifacts. 
Scanning for projects... 

------------------------------------------------------------------------ 
Building mrbool.vlc.example 0.0.1-SNAPSHOT 
------------------------------------------------------------------------ 
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/1.2/exec-maven-plugin-1.2.pom 

------------------------------------------------------------------------ 
BUILD FAILURE 
------------------------------------------------------------------------ 
Total time: 0.939s 
Finished at: Thu Sep 08 13:49:28 IRDT 2016 
Final Memory: 6M/159M 
------------------------------------------------------------------------ 
Failed to execute goal on project mrbool.vlc.example: Could not resolve dependencies for project mrbool.vlc:mrbool.vlc.example:jar:0.0.1-SNAPSHOT: Failed to collect dependencies for [uk.co.caprica:vlcj:jar:3.10.1 (compile), org.codehaus.mojo:exec-maven-plugin:jar:1.2 (compile)]: Failed to read artifact descriptor for org.codehaus.mojo:exec-maven-plugin:jar:1.2: Could not transfer artifact org.codehaus.mojo:exec-maven-plugin:pom:1.2 from/to central (http://repo.maven.apache.org/maven2): repo.maven.apache.org: Unknown host repo.maven.apache.org -> [Help 1] 

To see the full stack trace of the errors, re-run Maven with the -e switch. 
Re-run Maven using the -X switch to enable full debug logging. 

For more information about the errors and possible solutions, please read the following articles: 
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 

Mein InformationLib.java ist:

Antwort

0

Der Fehler besagt, dass Ihr Computer den Hostnamen repo.maven.apache.org nicht auflösen kann und dies die Ursache für den Fehler ist. Der Hostname wird hier aufgelöst und das Maven-Repository gefunden. Ich nehme an, das ist ein Problem mit Ihrem lokalen DNS.