Executable File

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MiziaQ
    New Member
    • Nov 2007
    • 63

    Executable File

    I have made an executable .jar file of an application in java which
    incorporates both a GUI and CLI. However, when I tried testing the
    program afterwards, command-line output would not be displayed.
    How can I fix this ?
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by MiziaQ
    I have made an executable .jar file of an application in java which
    incorporates both a GUI and CLI. However, when I tried testing the
    program afterwards, command-line output would not be displayed.
    How can I fix this ?
    Start your executable .jar file with the "java" command, not the "javaw" command.

    kind regards,

    Jos

    Comment

    • MiziaQ
      New Member
      • Nov 2007
      • 63

      #3
      I'm not sure what you mean. Could you please give some more detail.

      Thanks in advance,

      Mike

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by MiziaQ
        I'm not sure what you mean. Could you please give some more detail.

        Thanks in advance,

        Mike
        This is not a Java question: check which program is associated with the ".jar" file extension. If it isn't "java.exe", change the association.

        kind regards,

        Jos

        Comment

        • MiziaQ
          New Member
          • Nov 2007
          • 63

          #5
          I'm using jGrasp to create an executable, so I have no idea how to do this manually.

          Comment

          • Laharl
            Recognized Expert Contributor
            • Sep 2007
            • 849

            #6
            Assuming JGrasp is an IDE, go find the actual executable on your hard drive and look at what it says by 'Open With'. You want it to be java.exe, it looks like. Or just run it from the command line directly.

            Comment

            • Jibran
              New Member
              • Oct 2008
              • 30

              #7
              You need to use "jar" command with a parameter to run your executable jar file. Google it.

              Comment

              Working...