title: Loading TiledMap resource, within jar... about to make me go insane(Slick2d)
body: <p>simple problem. Java is pissing me off SO badly. I'm currently using slick2d, and in order for my resources to work from jar, I have to make them so they are read correctly, and not from an absolute path. I used to use, TiledMap k = new TiledMap(locationstringhere) and that works fine in eclipse, but it wont run from jar. So now i'm trying a new thing, where I initialize an input stream by saying InputStream k = ResourceLoader.getResourceFromStream(locationstringhere) and then I load my map up by saying map = new TiledMap(k, tilemaplocationstringhere). This works, but it will NOT find the tilemap location. It keeps saying "can't find data//pave.png//pave.png wtf does that mean? I don't even have it twice like its showing. Code:</p>
  
  <pre><code>InputStream k = ResourceLoader.getResourceAsStream("data//maps//3directionroomleftside(goesalongleftedge).tmx");
          mapleftside = new TiledMap(k, "data//maps//pave.png");
  </code></pre>
  
  <p>So I guess my question is, what is a way I can intialize a TiledMap, that can be ran from a jar. And if my method is correct, how do I get the gosh damned tileset to be found? I've tried so many different things, moving the png EVERYWHERE, its always "new location/pave.png/pave.png" Im going to go insane. Please help.</p>