Bonjour,
LastFm fournit une API pour interroger son site. Un développeur a implanté cette API en java :
http://www.u-mass.de/lastfm
http://lastfm-java.googlecode.com/fi...dings-3.22.zip
Mon problème est le suivant :
Je souhaite compiler le fichier
/home/crazyhorse/last.fm-bindings-3.22/src/examples/ArtistExample.java
Naïvement je tape sous la console:
cd /home/crazyhorse/last.fm-bindings-3.22/src/examples/
javac -classpath ../../last.fm-bindings.jar ArtistExample.java
(last.fm-bindings.jar est le package fourni par le développeur)
J'obtiens alors les erreurs suivantes:
Syntax error, parameterized types are only available if source level is 5.0
Syntax error, 'for each' statements are only available if source level is 5.0
Ce qui semble étrange puisque java -version me renvoit java version "1.6.0_10"
Et également ces erreurs:
-The type Collection is not generic; it cannot be parameterized with arguments <Track>
-The method printf(String, Object[]) in the type PrintStream is not applicable for the arguments (String, String, int)
J'ai certainement tapé une mauvaise commande de compilation... pouvez-vous m'en proposer une valide ? A moins que le développeur ait fait un travail de cochon, ce dont je doute a priori.
Merci d'avance ! :o)
Partager