I tried implementing an mp3 player that someone released into a game client of mine, The player works fine on my own computer but when I distribute the client the player doesn't work properly. I get this error:
The mp3 player I used is located here, Source files included:
If someone could help me It would be greatly appreciated
Thanks for your time,
Austin
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2407
posted
0
How are you distributing it? Are all required libraries included and properly referenced?
Austin Melchior
Greenhorn
Joined: May 05, 2012
Posts: 7
posted
0
Tim Moores wrote:How are you distributing it? Are all required libraries included and properly referenced?
It's being distributed in a rar file, which has the bin directory in it, it contains the batch files with the correct run command in it. All class files are in and my client loads fine, the mp3 shows when activated but when you attempt to play a song it throws the error.
The jmf.jar library is in the bin folder and the run batch file references it.
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2407
posted
0
In addition to JMF, does it also contain and reference the MP3 plugin for JMF?
Austin Melchior
Greenhorn
Joined: May 05, 2012
Posts: 7
posted
0
Tim Moores wrote:In addition to JMF, does it also contain and reference the MP3 plugin for JMF?
No, how would I reference that? Do I need to? I haven't referenced it on my own computer and it works properly.
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2407
posted
0
By "referencing it" I mean "adding it to the classpath". On your computer you may have it in a directory where it's added to the classpath automatically, but that wouldn't be the case on some other random machine. Since you mention a batch file, I assume that contains a "java" command - its "-cp" switch determines the classpath, and that must contains all classes and jar files.
Austin Melchior
Greenhorn
Joined: May 05, 2012
Posts: 7
posted
0
Tim Moores wrote:By "referencing it" I mean "adding it to the classpath". On your computer you may have it in a directory where it's added to the classpath automatically, but that wouldn't be the case on some other random machine. Since you mention a batch file, I assume that contains a "java" command - its "-cp" switch determines the classpath, and that must contains all classes and jar files.
I know what you meant by referencing, I don't know which file I have to reference though, I've already referenced the jmf, Is there something else I need to reference? If so do you have a download for the jar?
Here is my current batch file:
Thanks for your assistance.
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2407
posted
0
I don't know what "Theme.jar" contains. I do know that the MP3 plugin for JMF is a separate jar file from JMF itself.
Austin Melchior
Greenhorn
Joined: May 05, 2012
Posts: 7
posted
0
Tim Moores wrote:I don't know what "Theme.jar" contains. I do know that the MP3 plugin for JMF is a separate jar file from JMF itself.
The theme.jar is separate from the mp3, its a set of different themes I use for my client. But the mp3 plugin ill have to find, that may be what I am missing, thanks for this and I'll let you know if i fine it and whether or not it works.