Search:

Type: Posts; User: yuki

Search: Search took 0.29 seconds.

  1. Replies
    17
    Views
    3,321

    Re: How to include .ser file into .jar file

    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...
  2. Replies
    17
    Views
    3,321

    Re: How to include .ser file into .jar file

    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...
  3. Replies
    17
    Views
    3,321

    Re: How to include .ser file into .jar file

    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...
  4. Replies
    17
    Views
    3,321

    Re: How to include .ser file into .jar file

    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..
  5. Replies
    17
    Views
    3,321

    Re: How to include .ser file into .jar file

    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...
  6. Replies
    17
    Views
    3,321

    Re: How to include .ser file into .jar file

    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...
  7. Replies
    17
    Views
    3,321

    Re: How to include .ser file into .jar file

    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...
  8. Replies
    17
    Views
    3,321

    Re: How to include .ser file into .jar file

    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,...
  9. Replies
    17
    Views
    3,321

    Re: How to include .ser file into .jar file

    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...
  10. Replies
    17
    Views
    3,321

    How to include .ser file into .jar file

    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...
Results 1 to 10 of 10