Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tags MP3 Java

 
laura spain
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello my friend!
i want to get the information , like album artist year.... from a mp3 with a local (path)!

i find this code, also i add a jar, but a get this error:"can not find a symbol:"
this is a code:


thanks for your help.
prob.png
[Thumbnail for prob.png]
 
Tim Moores
Bartender
Posts: 2687
36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you import the required library classes? Is the library -whichever one that is- in your classpath?
 
laura spain
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes i did!


 
Campbell Ritchie
Sheriff
Posts: 48436
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the classpath you are using? What is the exact wording of the rror message. Please post the text; many people find screenshots difficult to read.
 
laura spain
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Campbell Ritchie
Sheriff
Posts: 48436
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The MP3File class has no method to get the ID3 tag. You will have to find which class that method is in. It has however got methods to get the artist, etc, so you might get it to work by calling mp3.getArtist() or similar.
 
laura spain
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
aaa ok so ! now i see where is the probleme! thanks for help
 
Campbell Ritchie
Sheriff
Posts: 48436
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You’re welcome

Have you worked out how to find the documentation for that class, and how to read it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic