jar file works on XP but not on Linux
I finally got a Java program that uses sound working in an executable jar file. I wrote on a PC running XP. I made sure the program ran fine with no other files by putting the program in a folder all its own.
i sent the program to someone that is using Linux. He says it runs and he can hear one sound clip but not the others.
So I downloaded the file I sent him to another PC running XP and it worked fine. Could it be that he needs to update his JRE?
Re: jar file works on XP but not on Linux
Update the JRE and see if that makes a difference. Further, if you access the system using file paths in any way, be sure you are doing so using system independent variables (like File.separator instead of "\\" of "/"). Lastly, try to run the jar on linux from the command line (or configure your app to use logging - see my blog) so you can see any exceptions being thrown