Results 1 to 10 of 10
  1. #1
    allaudin's Avatar
    allaudin is offline Senior Member
    Join Date
    Apr 2013
    Posts
    271
    Rep Power
    0

    Default Java Graphics JAR .. Double Click Run in Windows

    he boys can we run executable jar of java graphics by double clicking on it ... first I couldn't but now when I double click it runs ... any method of double clicking a jar having console output???

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

    Default Re: Java Graphics JAR .. Double Click Run in Windows

    Quote Originally Posted by allaudin View Post
    .. any method of double clicking a jar having console output???
    Yes, normally jar files are associated with javaw.exe, change that to java.exe to keep a console window open.
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  3. #3
    allaudin's Avatar
    allaudin is offline Senior Member
    Join Date
    Apr 2013
    Posts
    271
    Rep Power
    0

    Default Re: Java Graphics JAR .. Double Click Run in Windows

    not working ... where is this javaw.exe ??

  4. #4
    allaudin's Avatar
    allaudin is offline Senior Member
    Join Date
    Apr 2013
    Posts
    271
    Rep Power
    0

    Default Re: Java Graphics JAR .. Double Click Run in Windows

    ok i got it ..but not working with java.exe as well

  5. #5
    allaudin's Avatar
    allaudin is offline Senior Member
    Join Date
    Apr 2013
    Posts
    271
    Rep Power
    0

    Default Re: Java Graphics JAR .. Double Click Run in Windows

    with java.exe file just opens and then disappears with a blink of eye ..

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

    Default Re: Java Graphics JAR .. Double Click Run in Windows

    Well, if it doesn't do anything that requires it to hang around then it will just close.
    If there's no interaction with a user, for example, there's no point staying open.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  7. #7
    allaudin's Avatar
    allaudin is offline Senior Member
    Join Date
    Apr 2013
    Posts
    271
    Rep Power
    0

    Default Re: Java Graphics JAR .. Double Click Run in Windows

    nop .. I have also added input.next to input form user but still it does the same

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

    Default Re: Java Graphics JAR .. Double Click Run in Windows

    Then it's probably throwing an exception.
    Run it from the command line:
    java -jar <your jar file name>
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  9. #9
    allaudin's Avatar
    allaudin is offline Senior Member
    Join Date
    Apr 2013
    Posts
    271
    Rep Power
    0

    Default Re: Java Graphics JAR .. Double Click Run in Windows

    Tolls I know running it form command line ... I can also run it by making a batch file ...but I wanna make it double clickable

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

    Default Re: Java Graphics JAR .. Double Click Run in Windows

    No, I mean run it from the command line so you can see what it is doing, because if it is throwing an exception for some reason you will not see it when double clicking.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. How to make java program run from a double click.
    By spas87 in forum New To Java
    Replies: 1
    Last Post: 12-14-2011, 05:17 PM
  2. Replies: 2
    Last Post: 06-22-2011, 01:19 PM
  3. Double click event
    By Dipke in forum New To Java
    Replies: 3
    Last Post: 10-22-2010, 11:39 AM
  4. Double click eevent on particular row
    By selva.bics in forum AWT / Swing
    Replies: 3
    Last Post: 10-10-2009, 10:33 AM
  5. run java application from desktop with double click
    By Rose88 in forum Advanced Java
    Replies: 4
    Last Post: 09-29-2009, 06:32 PM

Posting Permissions

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