It's not a secret anymore!*
The moose likes Swing / AWT / SWT and the fly likes Tags MP3 Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Tags MP3 Java" Watch "Tags MP3 Java" New topic
Author

Tags MP3 Java

laura spain
Greenhorn

Joined: Apr 09, 2012
Posts: 6
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.


[Thumbnail for prob.png]

Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Did you import the required library classes? Is the library -whichever one that is- in your classpath?
laura spain
Greenhorn

Joined: Apr 09, 2012
Posts: 6
yes i did!


Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38483
    
  23
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

Joined: Apr 09, 2012
Posts: 6
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38483
    
  23
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

Joined: Apr 09, 2012
Posts: 6
aaa ok so ! now i see where is the probleme! thanks for help
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38483
    
  23
You’re welcome

Have you worked out how to find the documentation for that class, and how to read it?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tags MP3 Java