Results 1 to 7 of 7
  1. #1
    MR bruto's Avatar
    MR bruto is offline Senior Member
    Join Date
    May 2013
    Location
    The Netherlands
    Posts
    130
    Rep Power
    0

    Default My .jar files not working on other people's computers.

    So yes i'm done with this application i worked like 8 hours on, and im ready to make it a runnable jar file.

    So ofcourse i did, i made runnable jar files countless times before.

    But this time the application only works for me, on MY computer.
    i tested it with my other laptop and other computer, as always.

    On the other computers the jar file does NOTHING on double click, and on my laptop it works fine.

    Could it be something wrong with my code?

    What are your suggestions?

    Thanks in advance.
    Never give up.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,655
    Blog Entries
    7
    Rep Power
    21

    Default Re: My .jar files not working on other people's computers.

    Start your .jar file manually, i.e. from a console/shell and see what happens ...

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    MR bruto's Avatar
    MR bruto is offline Senior Member
    Join Date
    May 2013
    Location
    The Netherlands
    Posts
    130
    Rep Power
    0

    Default Re: My .jar files not working on other people's computers.

    Quote Originally Posted by JosAH View Post
    Start your .jar file manually, i.e. from a console/shell and see what happens ...

    Jos
    That DOES work for me yes. only when i just extracted it. , but let's say when i move it into a map it suddenly stops working again. and does nothing on double-click. Not even when i use the command line after moving it into a map.

    Then it does just nothing again, even the CMD doesn't say anything.
    Never give up.

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,655
    Blog Entries
    7
    Rep Power
    21

    Default Re: My .jar files not working on other people's computers.

    Quote Originally Posted by MR bruto View Post
    That DOES work for me yes. only when i just extracted it. , but let's say when i move it into a map it suddenly stops working again. and does nothing on double-click. Not even when i use the command line after moving it into a map.

    Then it does just nothing again, even the CMD doesn't say anything.
    So the JRE on that other computer is posessed; start spraying frog blood and dragon goo around while dancing around an old oak tree (naked and counter clockwise); I am not religious so I would check if that .jar file contains everything it needs: all the classes and all its resources; I'd also make sure no class in that .jar file tries to load a resource from the file system.

    kind regards (and don't forget the garlic),

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    MR bruto's Avatar
    MR bruto is offline Senior Member
    Join Date
    May 2013
    Location
    The Netherlands
    Posts
    130
    Rep Power
    0

    Default Re: My .jar files not working on other people's computers.

    Quote Originally Posted by JosAH View Post
    So the JRE on that other computer is posessed; start spraying frog blood and dragon goo around while dancing around an old oak tree (naked and counter clockwise); I am not religious so I would check if that .jar file contains everything it needs: all the classes and all its resources; I'd also make sure no class in that .jar file tries to load a resource from the file system.

    kind regards (and don't forget the garlic),

    Jos
    Hahahahah i had to laugh at that.

    But i managed to find the problem.

    It was this picture that was wrong, i don't know what was wrong with that.
    but i removed the picture from the program, compiled it again, tested it on another computer, and it worked.
    Then i re-added the picture, but re-named it. That seemed to work.


    I don't know what could have possibly caused this, but re-naming the picture worked.

    Regards,

    MR bruto
    Never give up.

  6. #6
    superhaNds is offline Senior Member
    Join Date
    Apr 2013
    Location
    Sweden
    Posts
    265
    Rep Power
    2

    Default Re: My .jar files not working on other people's computers.

    Quote Originally Posted by MR bruto View Post
    Hahahahah i had to laugh at that.

    But i managed to find the problem.

    It was this picture that was wrong, i don't know what was wrong with that.
    but i removed the picture from the program, compiled it again, tested it on another computer, and it worked.
    Then i re-added the picture, but re-named it. That seemed to work.


    I don't know what could have possibly caused this, but re-naming the picture worked.

    Regards,

    MR bruto
    Don't lie, I bet you did that whole routine explained earlier by Josah

  7. #7
    MR bruto's Avatar
    MR bruto is offline Senior Member
    Join Date
    May 2013
    Location
    The Netherlands
    Posts
    130
    Rep Power
    0

    Default Re: My .jar files not working on other people's computers.

    Quote Originally Posted by superhaNds View Post
    Don't lie, I bet you did that whole routine explained earlier by Josah
    K i have to admit, i used the garlic...
    Never give up.

Similar Threads

  1. Working with Files in Java
    By VishnuCBE in forum Advanced Java
    Replies: 1
    Last Post: 03-24-2010, 12:59 PM
  2. working with .ini files
    By pele in forum Advanced Java
    Replies: 0
    Last Post: 03-27-2009, 09:34 AM
  3. working with files (text files)
    By itaipee in forum New To Java
    Replies: 1
    Last Post: 02-24-2009, 11:38 AM
  4. Can someone help me working with files?
    By Goodwine in forum New To Java
    Replies: 4
    Last Post: 11-18-2008, 04:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •