Results 1 to 2 of 2
  1. #1
    Pinchanzee is offline Member
    Join Date
    Oct 2011
    Rep Power

    Default Export to JAR - help with required folder?

    Hey guys, newbie question..

    I'm having a bit of trouble exporting to a Runnable JAR.
    My project has the src folder and a "maps" folder alongside it (not a subfolder of it) - as such, it isn't compiled into the JAR, and it doesn't work.
    The folder isn't technically a library as such (just full of .map files that are just text files) so I'm not sure how to import it.

    The project works fine if I export the JAR then manually copy the other folder along-side it, but surely there's a way to have that done automatically? The export options tell me you can put required libraries in an adjacent folder, but that's not worked.

    Will I just have to manually copy the required folders whenever I export it?

    Any help would be much appreciated

  2. #2
    pellebye is offline Member
    Join Date
    Apr 2009
    Rep Power

    Default Re: Export to JAR - help with required folder?

    You can make a new package (e.g. call it maps) in the src folder and then import your maps-files into the new folder. But of course you must also change your code to point to the new folder.
    Life is not the worst thing we have ... in a few minutes my coffee is ready.

Similar Threads

  1. How do I export to a Jar?
    By Bread in forum Eclipse
    Replies: 4
    Last Post: 11-15-2010, 01:03 AM
  2. Replies: 0
    Last Post: 10-28-2010, 01:46 PM
  3. JPDF Export v1.0.2
    By hassan1990 in forum Java Software
    Replies: 2
    Last Post: 10-02-2010, 09:55 PM
  4. export to xml
    By karq in forum Advanced Java
    Replies: 0
    Last Post: 10-01-2010, 11:49 AM
  5. export eps
    By mr_empty in forum Java 2D
    Replies: 0
    Last Post: 04-25-2010, 09:40 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