jar not working HELP!
I've written the code for an mp3 player and I want to make it jar.
I've used javazoom for playing the audio.Apparently when I export it
javazoom is not exported or something like that,because if I take out the parts in the code that use javazoom,the jar runs normally...help me please I'd like the whole program to work via jar...
[352 byte] By [
whashneza] at [2007-11-26 16:24:24]

# 1
I don't know much about Javazoom but I imagine it is an api library for Java development and that would be in the form of a JAR file as well.
When running from the JAR you need to include the Javazoom api in your classpath or your application will not find the library.
Set the classpath argument to point to the Javazoom jar file when you call java.exe to run your application.
# 4
F:\>java -cp F:\Polytexneio\Οντοκεντρικός\project_3\jl1.0.jar mp3player.jar
Exception in thread "main" java.lang.NoClassDefFoundError: mp3player/jar
F:\>java -cp F:\Polytexneio\Οντοκεντρικός\project_3\jl1.0.jar mp3player
Exception in thread "main" java.lang.NoClassDefFoundError: mp3player
F:\>
Thanks for replying.This is what happens when I use the command you told me.Is this enough to determine the error?
# 5
> F:\>java -cp
> F:\Polytexneio\享麸赍
> 57;赳殛\project_3\jl1.
> 0.jar mp3player.jar
> Exception in thread "main"
> java.lang.NoClassDefFoundError: mp3player/jar
>
> F:\>java -cp
> F:\Polytexneio\享麸赍
> 57;赳殛\project_3\jl1.
> 0.jar mp3player
> Exception in thread "main"
> java.lang.NoClassDefFoundError: mp3player
>
> F:\>
>
> Thanks for replying.This is what happens when I use
> the command you told me.Is this enough to determine
> the error?
Oops! Try this...
java -cp .;F:\Polytexneio\享麸赍眙耖挈騖project_3\jl1.0.jar mp3player.jar
The error means that it can't find mp3player.jar because you didn't include it in the classpath.
The . (period) means check current directory and the ; (semi-colon) delimits different classpath locations to search on.
This is assuming that mp3player.jar is in the current directory.
If that doesn't work then try this...
java -cp [absolute file path to mp3player.jar];F:\Polytexneio\享麸赍眙耖挈騖project_3\jl1.0.jar mp3player.jar