Results 1 to 8 of 8
  1. #1
    Addez is offline Senior Member
    Join Date
    Aug 2009
    Posts
    294
    Rep Power
    0

    Default Export jar file eclipse doesnt work no more?

    Hi!
    I exported a project some days ago to jar.
    Everything worked fine.

    Now all of a sudden its not possible to export anymore!
    I got the resource folder in src and I export it along with the scripts and whole project.
    But for somereason it says it cant find a text file named Characters.txt
    Have no idea whats wrong.. The charactersfile is in right dir..

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

    Default

    Quote Originally Posted by Addez View Post
    Hi!
    I exported a project some days ago to jar.
    Everything worked fine.

    Now all of a sudden its not possible to export anymore!
    I got the resource folder in src and I export it along with the scripts and whole project.
    But for somereason it says it cant find a text file named Characters.txt
    Have no idea whats wrong.. The charactersfile is in right dir..
    Computers are far from being creative entities; your remark "all of a sudden it doesn't work anymore" can only have one cause: that's you; you have done something that makes your computer do something that surprises you. Computers don't work anymore if some spontaneous mutation have changed it. Lucky for us ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    Addez is offline Senior Member
    Join Date
    Aug 2009
    Posts
    294
    Rep Power
    0

    Default

    Sorry for the little details..
    I just wanted to know if theres any special box to click in the "create jar" menu that Iv forgot

  4. #4
    Addez is offline Senior Member
    Join Date
    Aug 2009
    Posts
    294
    Rep Power
    0

    Default

    So for updated info, iv sometimes got resource out of sync errors when makign the jar.
    So I clicked refresh on my project then exported again. It works.
    But yet again, even if the relative path works when running it all in eclipse, it doesnt seem to work when exported.

    Does this has to do with classpath?
    If so, where do I moddefy it and what should I change in it?

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

    Default

    Quote Originally Posted by Addez View Post
    But yet again, even if the relative path works when running it all in eclipse, it doesnt seem to work when exported.
    What do you mean by that? What relative path? Show us what you've put in your jar file, where you have stored it and how you're trying to run a class in that jar file.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  6. #6
    Addez is offline Senior Member
    Join Date
    Aug 2009
    Posts
    294
    Rep Power
    0

    Default

    <Moderator Edit: post deleted for use of obscenities>
    Last edited by Fubarable; 03-14-2011 at 12:29 PM.

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default

    Obscenities reported. Utter incompetence is no excuse for violating the forum rules and decorum.

    db

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

    Default

    Computer - Addez : 1 - 0

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. relation doesnt work
    By Nigel in forum New To Java
    Replies: 3
    Last Post: 03-12-2011, 08:02 PM
  2. KeyListener doesnt work some times.
    By Addez in forum New To Java
    Replies: 15
    Last Post: 09-21-2010, 05:25 PM
  3. PrintWriter doesnt work :(
    By Addez in forum New To Java
    Replies: 11
    Last Post: 01-17-2010, 06:59 PM
  4. Dll Call doesnt work
    By INFACT in forum New To Java
    Replies: 1
    Last Post: 10-04-2009, 10:31 PM
  5. java doesnt allow vista to work
    By 10rosas in forum New To Java
    Replies: 5
    Last Post: 12-22-2008, 05:23 PM

Posting Permissions

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