Results 1 to 6 of 6
Like Tree1Likes
  • 1 Post By Tolls

Thread: Running Jar files in Windows

  1. #1
    GRP
    GRP is offline Member
    Join Date
    Jul 2012
    Posts
    2
    Rep Power
    0

    Unhappy 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

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default 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?

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,236
    Rep Power
    19

    Default Re: Running Jar files in Windows

    Not a Java 2D question. Moving to New to Java.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    GRP
    GRP is offline Member
    Join Date
    Jul 2012
    Posts
    2
    Rep Power
    0

    Default Re: Running Jar files in Windows

    Quote Originally Posted by Fubarable View Post
    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:
    Running Jar files in Windows-cmdprompt1.png

    If you need more information let me know
    thanks for your help
    -GRP

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,009
    Rep Power
    20

    Default 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.
    Fubarable likes this.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Error While Running Windows Command Line Instruction
    By divs1210 in forum AWT / Swing
    Replies: 5
    Last Post: 04-13-2011, 04:09 PM
  2. Running Java programs in windows 7
    By jonytek in forum New To Java
    Replies: 1
    Last Post: 02-09-2011, 04:45 AM
  3. How to test if server is running Windows 7?
    By space889 in forum Advanced Java
    Replies: 18
    Last Post: 07-21-2010, 01:37 AM
  4. running java under Windows 7
    By newbie123 in forum New To Java
    Replies: 3
    Last Post: 05-29-2010, 08:36 PM
  5. Errors running app in linux but not in Windows
    By JohnST in forum New To Java
    Replies: 3
    Last Post: 03-12-2010, 01:58 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •