I everyone
I search on the forum but i didn't find the answer... My question is very simple: how can i create a jar with the resources into it? I create a jar with jarsplice v0.25 but, when i launch my game i have the same exception:
Code:
Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException: ressources\files\options.props (The system cannot find the path specified)
at game.domain.options.Options.loadOptions(Options.java:81)
at game.domain.options.Options.<init>(Options.java:22)
at game.domain.options.Options.getInstance(Options.java:59)
at game.services.others.OptionsService.<init>(OptionsService.java:7)
at game.domain.state.model.GamePlayState.<init>(GamePlayState.java:34)
at game.domain.state.gameplay.ExploreWorldState.<init>(ExploreWorldState.java:35)
at game.domain.state.model.MainState.<init>(MainState.java:60)
at game.application.DragonEye.main(DragonEye.java:11)
Caused by: java.io.FileNotFoundException: ressources\files\options.props (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.util.Scanner.<init>(Scanner.java:636)
at game.domain.options.Options.loadOptions(Options.java:67)
... 7 more
Thank you very much if you can explain to me the best way to do it.