Jump to content

How to include .ser file into .jar file

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
yuka

yuka

    Newbie

  • Members
  • Pip
  • 1 posts
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 class containing the 5 highest scores obtained by different players..

I thought that was enough to open the file from the application, as if it where an image, or a sound effect, so i put all those resources in the same folder, which i can access properly, but not to read the .ser file. Of course the problem im having is that i cant access it when i execute the .jar file, but it works perfect when i run the application from NetBeans.
I think now i have to do something with the manifiest, or maybe not.
Have no idea how to make it work... any suggestions pleaseeee?

#2
Sinipull

Sinipull

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 386 posts
Not sure, probably has something to do with permissions:

Permissions in the Java™ 2 SDK