I have made my game i coded into a runnable jar file using eclipse however when i try and run it from the desktop it does nothing i have tried to fix it but so far no luck and ideas
thanks
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
I have made my game i coded into a runnable jar file using eclipse however when i try and run it from the desktop it does nothing i have tried to fix it but so far no luck and ideas
thanks
See if there are error messages:
Open a command prompt window and entry:
java -jar THEJARFILENAME.jar
copy the full contents of the window and paste here.
On windows: To copy the contents of the command prompt window:
Click on Icon in upper left corner
Select Edit
Select 'Select All' - The selection will show
Click in upper left again
Select Edit and click 'Copy'
Paste here.
If you don't understand my answer, don't ignore it, ask a question.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Greg>java -jar DisplayScreen.jar
Error: Unable to access jarfile DisplayScreen.jar
C:\Users\Greg>
im probably being dopy but if you can help then thanks as i am new to programming
You need to be in the folder with the jar file. Change the directory or copy the jar file to the Greg folder.
The java command did not find the jar file.
If you don't understand my answer, don't ignore it, ask a question.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Greg>java -jar FreedomTD.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.libr
ary.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.lwjgl.Sys$1.run(Sys.java:73)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
at org.lwjgl.Sys.loadLibrary(Sys.java:95)
at org.lwjgl.Sys.<clinit>(Sys.java:112)
at org.lwjgl.opengl.Display.<clinit>(Display.java:132 )
at Main.DisplayScreen.CreateWindow(DisplayScreen.java :33)
at Main.DisplayScreen.Start(DisplayScreen.java:22)
at Main.DisplayScreen.main(DisplayScreen.java:251)
C:\Users\Greg>
this is what i got this time
Looks like you are missing some parts. See the API doc for the class: UnsatisfiedLinkErrorjava.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
I'm not familiar with lwjgl. Read its API doc to see where you need to place the parts it uses during execution.
Do a google with java.library.path for info on the problem and its solution.
If you don't understand my answer, don't ignore it, ask a question.
This problem relates to the natives setup within the project. i'm having the same problem. As soon as I have a fix I'll let you know... Though its damn frustrating!!