We would cut you some slack but frankly people get quite annoyed when people ask questions before trying to find a solution themselves.
Also it seems most of the advice given to you is completely ignored.
Such as learn a little more Java, in this situation running from the command line is the first thing you should have done (also one of the first things taught in any book worth a salt) , not made another forum post.
btw this is exactly like my first experience with jarSplice, which is why it sucks imo.
you should never have to pack resources in the source folder, or pack everything into a fat jar
some of you might prefer that but I think its ugly as hell.
in the end I wanna have one exe that is like 100 kb and an assets folder or pack
so yeah jarsplice is very picky about the resources and stuff.
I havent tried packr. I do own JET which worked fine. Usually I just pack it myself with an nullsoft installer an use batch-to-exe to run.
Second, do you have anything constructive to add to the conversation, or are you just going to insult OP for not knowing how to do something? Guess what, people don’t know exactly the same things as you just because you’ve learned them before.
OP, what do you mean by manually? Packing the Jar? Yes, but JarSplice isn’t the issue here. The issue is how you are loading your resources. Java is (for lack of a better term) picky about how you load resources in, in different situations. Blaming JarSplice for Java’s confusing IO library is not going to get you a solution.
gives an error. I’ll try to rephrase the question, How do I load textures from the Slick_util.jar into a fat jar. I watched videos on how and I can easily get the libraries and jars, it’s just I don’t have the textures when I run it. I put the res/ folder in the src/ folder now. The textures don’t load still ofcourse.
Exception in thread "main" java.lang.NullPointerException
at org.newdawn.slick.opengl.TextureLoader.getTexture(TextureLoader.java:64)
at org.newdawn.slick.opengl.TextureLoader.getTexture(TextureLoader.java:24)
at FSMain.MainFS.main(MainFS.java:67)
Instead of slick_util, should I just use the normal image rendering somehow ??? I have no idea what other way to draw and load them .
For the last time, [icode]new File(…)[/icode] Will. Not. Work. Why? Because those “files” you want to load are zip entries when you export to jar (jar files are actually zip files), not files.
If I’m unclear still, this is exactly what I’m doing.At the very end my results are a blank window for about a second. Please tell me what Im doing wrong, I really need to understand:
Video of what I did: http://www.mediafire.com/watch/oohf1qnh2oefkxp/exportsfail.mp4