Charles.w Posted March 27, 2006 Share Posted March 27, 2006 Je désirerais inclure un son dans un fichier jar, celui-ci devant normallement pouvoir être joué par le programme contenu dans cet archive... Est-ce possible ? Comment fait-on ? Link to comment Share on other sites More sharing options...
Baldurien Posted March 27, 2006 Share Posted March 27, 2006 jar = java archive = fichier zip avec manifest donc tout est possible. CQFD. Link to comment Share on other sites More sharing options...
Sentinel Posted March 27, 2006 Share Posted March 27, 2006 Et getResourceAsStream pour y accéder. Link to comment Share on other sites More sharing options...
Baldurien Posted March 27, 2006 Share Posted March 27, 2006 Oui, mais comme il précise pas le langage :)) Link to comment Share on other sites More sharing options...
Sentinel Posted March 27, 2006 Share Posted March 27, 2006 Avec un JAR on s'en doute un peu non ? Link to comment Share on other sites More sharing options...
Baldurien Posted March 27, 2006 Share Posted March 27, 2006 rofl :) si on peut plus jouer sur le fond et la forme ^^ Link to comment Share on other sites More sharing options...
Charles.w Posted March 28, 2006 Author Share Posted March 28, 2006 Pour le format de l'archive JAR, j'avais remarqué que c'était un ZIP + manifest...il faut que je teste la méthode données par Sentinel... En tout cas, merci à vous Link to comment Share on other sites More sharing options...
Sentinel Posted March 28, 2006 Share Posted March 28, 2006 Tiens Charles, un petit exemple : http://java.developpez.com/faq/java/?page=...ementRessources Link to comment Share on other sites More sharing options...
Charles.w Posted March 28, 2006 Author Share Posted March 28, 2006 Ca marche, merci beaucoup Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.