IDEA IntelliJ Frage zu pom.xml

Hallo,
ich habe mit einem Java-Projekt angefangen, in welches ich ein anderes jar-File, welches ich benötige, inkludiert habe. Genau gehts um "themoviedb-1.4.jar". Wenn ich nun mit

Code:
        TmdbMovies movie = new TmdbApi("mymoviedbkey").getMovies();
eine "movie" anlegen will, bekomm ich folgende Exception:

Code:
Exception in thread "main" info.movito.themoviedbapi.tools.MovieDbException: Failed to read configuration
    at info.movito.themoviedbapi.TmdbApi.<init>(TmdbApi.java:58)
    at info.movito.themoviedbapi.TmdbApi.<init>(TmdbApi.java:44)
    at Main.main(Main.java:40)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/ObjectMapper
    at info.movito.themoviedbapi.AbstractTmdbApi.<clinit>(AbstractTmdbApi.java:27)
    at info.movito.themoviedbapi.TmdbApi.<init>(TmdbApi.java:54)
    ... 7 more
Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.databind.ObjectMapper
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 9 more
Da ich da jetzt aber weder was mit Maven oder sonst was arbeiten will, weiss ich ehrlich gesagt nicht, wo ich dieses pom.xml, welches sich in der .jar-Datei befindet, hinplatzieren soll bzw. wie ich das IntelliJ mitteilen soll wo diese Datei ist...

Hat da jemand einen Tipp für mich??? :)

Thx & Lg
buzzzz
 

looparda

Top Contributor
Ich kenne die Library nicht, aber NoClassDefFoundError deutet darauf hin, dass die Abhängigkeiten nicht in der jar enthalten sind. D.h. du musst manuell die Libs ebenfalls einbinden:
com.fasterxml.jackson.core » jackson-annotations
com.fasterxml.jackson.core » jackson-databind
org.slf4j » slf4j-api
org.yamj » api-common

Das ist aber Quatsch, manuell zu tun. Dafür gibt es Tools wie u.A. maven und gradle.
 
Ähnliche Java Themen
  Titel Forum Antworten Datum
N Frage zu meinen IntelliJ-Einstellungen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
S Frage zu Java IDE Android IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
D Frage zu automatisch generierten Javacode IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
F Frage zu CVSNT IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
T Eclipse kleine Frage IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
M Frage zu Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
J Frage zu iReport IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
G kleine frage zu JBuilder IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
F Frage zu Netbeans und SVN IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
E einfache Frage zu Netbeans und visual Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
X Frage zu SVN IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
M Eclipse Packages -- kurze Frage IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
G GUI Builder Frage WICHTIG! IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
G JBuilder 2005 Frage IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
Q Frage zu Borland JBuilder 2005 Foundation IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
G Frage zu Klassendiagramm in Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
S frage zu eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
M Eclipse Shortcut Frage IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4

Ähnliche Java Themen

Neue Themen


Oben