Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: jar file works on XP but not on Linux

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Thanked 0 Times in 0 Posts

    Default 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?



  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Thanked 833 Times in 772 Posts
    Blog Entries

    Default 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

Similar Threads

  1. Replies: 1
    Last Post: June 7th, 2011, 11:53 AM
  2. This program works but Want to improve
    By SHStudent21 in forum What's Wrong With My Code?
    Replies: 6
    Last Post: January 8th, 2011, 05:53 PM
  3. [SOLVED] Can someone verify if this code for deleting a BST works?
    By scottb80 in forum Java Theory & Questions
    Replies: 2
    Last Post: November 2nd, 2010, 10:19 AM
  4. How overloaded paint() works?
    By maikeru in forum What's Wrong With My Code?
    Replies: 5
    Last Post: December 21st, 2009, 06:13 PM
  5. How database connection pooling works in a application
    By JayVirk in forum JDBC & Databases
    Replies: 0
    Last Post: October 10th, 2009, 07:14 AM