Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Libraries

843785Jul 18 2008 — edited Jul 18 2008
ok... so i'm using Netbeans at the moment but i'm having the same problem doing this from the command line.
I'm starting java again and have forgotten allot. also allot has changed. anyways. i'm trying to use Jlayer to decode MP3s however i get the jlayer library, set up the classpath.

i start my code by importing the class
import javazoom.jl.decoder;
when i do this in Netbeans it gives me the context list. I type in javazoom. and it tells me that there is a JL package benith it. i type in jl and it tells me that there are decoder, player and converter libraries. once i finish the line it immeadiately underlines javazoom and tells me -
package javazoom.jl does not exist.
when i run from the command line i get
Compiling 2 source files to C:\Users\mjh09\Documents\NetBeansProjects\JMFTutorial\build\classes
C:\Users\mjh09\Documents\NetBeansProjects\JMFTutorial\src\aPlayer\SimpleAudioPlayer.java:13: package javazoom.jl does not exist
import javazoom.jl.decoder;
1 error
BUILD FAILED (total time: 1 second)
i have my class paths set up properly and i have libraries setup inside of netbeans. so why cant i use the library?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 15 2008
Added on Jul 18 2008
5 comments
678 views