Wasnt sure where to put this, i couldnt find a programming help section… so since the games 2d i put it here
Okay, a wrote a little test game in java (screenshot here http://stars.hybd.net/games/ruby/ruby4.jpg ) The thing is it uses externally written .map files to load the maps, and when i finished the test and packaged it in the .jar file it didnt work.
I tried quite a few methods of loading the .map file, packaging it in the .jar, using a URLConnection to the harddrive , and just loading it off the hard drive but non seemed to work (im fairly positve its the opening of the file thats not working, as im using code that prevously worked in .jar format). Also the java.sun.com tutorial didnt really cover this (i looked over it, and it had some jar api stuff, but im not sure if thats what i want)
Now i looked around sun’s docs, and i think i read somewhere that i need to sign the .jar in such a way that i get full access to the hard drive (im guessing Java has security restrictions on this), so maybe thats why its not loading… can anyone clarify this for me? (i only need read access btw)
And for the actualy question, is there a way i can just place the .map file in the jar and load it from there? And if so, can anyone point me to an example, perhaps loading a .txt file from withing a jar?