Results 1 to 2 of 2
  1. #1
    hill0093 is offline Member
    Join Date
    Mar 2013
    Posts
    20
    Rep Power
    0

    Default Easier way to use MS command prompt for .jar files?

    I write a java program “ProgName.java” and make a file “ProgName.jar”.
    Then to use it on the command line I type “java –jar ProgName.jar “(+arguments).
    Is there an easier way to use the command line like typing just “ProgName.end” where “.end” is a different ending?
    Of course a “.bat” file works, but it’s a little messy also.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,403
    Rep Power
    25

    Default Re: Easier way to use MS command prompt for .jar files?

    Make a shortcut that can be clicked on to start the program. It can have the full commandline with args etc.
    A Target entry from my shorcuts:
    "C:\Program Files\Java\jre6\bin\java.exe" -Xmx120M -cp %JAVA_RUN%\SlideShowApp.jar;DocumentViewerW.jar SlideShow.ImgIdxEditor
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Replies: 3
    Last Post: 02-24-2014, 01:19 PM
  2. command prompt vs Eclipse
    By Parthi1705 in forum New To Java
    Replies: 5
    Last Post: 07-10-2012, 01:54 PM
  3. Letting my program command the command prompt
    By Smokey. in forum Threads and Synchronization
    Replies: 4
    Last Post: 03-29-2011, 11:34 PM
  4. New Command prompt
    By jmga9 in forum New To Java
    Replies: 4
    Last Post: 11-10-2010, 01:53 AM
  5. help me!!!! about command prompt..
    By kureikougaiji in forum New To Java
    Replies: 2
    Last Post: 11-13-2008, 06:15 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
  •