Running Jar files in Windows
Hi everyone
I am starting out in java and have been using slick 2d to help with programming my game.
I am having trouble on knowing how to export the file and then run it by itself on Windows OS
I have tried some ways but none have seemed to work
i do have java runtime environment 7 but it still doesn't work
if you have any idea of how to solve this problem please message me or reply to this topic
thanks
GRP
Re: Running Jar files in Windows
It's hard to know what's wrong based on the limited information you've provided. Have you tried to run the jar file from a cmd window? If so, does it produce any error messages?
Re: Running Jar files in Windows
Not a Java 2D question. Moving to New to Java.
db
1 Attachment(s)
Re: Running Jar files in Windows
Quote:
Originally Posted by
Fubarable
It's hard to know what's wrong based on the limited information you've provided. Have you tried to run the jar file from a cmd window? If so, does it produce any error messages?
Well i tried running it with java -jar name.jar and it would run but could not find lwjgl library and i'm using lwjgl and slick library and i have the both located in the workspace and have a separate folder when i export them but it still comes with an error. any suggestions?
Here is what i did and here is the error:
Attachment 4026
If you need more information let me know
thanks for your help
-GRP
Re: Running Jar files in Windows
You seem to be missing any class-path statements on the command line.
Re: Running Jar files in Windows
You can't define a classpath when using -jar, as it uses the classpath in the MANIFEST.
So I would guess it's something to do with that...not that I use stuff requiring native libraries all that often.