yes i noticed that.. i did some testing, printing out the path, and i made it work for the particular case when you run it by double-clicking on the jar file.
Its not working from netBeans, but no...
Type: Posts; User: yuki
yes i noticed that.. i did some testing, printing out the path, and i made it work for the particular case when you run it by double-clicking on the jar file.
Its not working from netBeans, but no...
hey!!.. sorry i took too long,. i been a little busy this weekend.
this last answer has been the solution i think!.. i guess it was what ive been trying to do from the beginning, even before using...
Im running the JAR both from console, and double-clicking on it (double clic to JAR stored in "dist" folder, after compiling from netBeans). When you said i should put the /resources/ folder next to...
yes, thats what i tried to do the first time.. but its not working..
ill see what i can do, and of course tell you if theres any solution!
thanks 4 your time..
I understand what u're saying.. maybe im trying to do something easy a lot more difficult..
its not that i need the file to be into the JAR file, i just need to read the data it contains to show...
if you wanna think with me a bit more, ill tell you that now i must solve another problem, which is writing to, or modifying the .ser file..
Im not really working hard on this, cause ive been pretty...
Thanx a lot for your answer.. i just tried that and it seems to work out fine!.. i used the ObjectInputStream, like u said.. the only thing i must do is run the JAR file with the "lib" folder next to...
Sorry, but i dont really understand what should i do then.. I just replied to another answer explaining a bit more how im doing it. I dont think its a problem with the file name, nor with the path,...
Yes actually im opening it using the getResource method, and its working perfect for images and audio.
URL uRL = GamePanel.class.getResource("/resources/scoreTable.ser");
if...
I've been programming a TETRIS game in JAVA, and i just finished it..
But when i was trying to execute the .JAR file, i noticed that i couldnt open the only .ser file i have, which is a serializable...