Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to execute java exe in VC++ 2010 ?

How to execute java exe in VC++ 2010 ?

Scheduled Pinned Locked Moved C / C++ / MFC
c++javahelptutorialquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    IICTECH
    wrote on last edited by
    #1

    hi, I want to execute java exe by passing arguments in VC++ 2010. I have tried shellExecute, but it is not working. Can any one please help me. Thanks in advance. :)

    L 1 Reply Last reply
    0
    • I IICTECH

      hi, I want to execute java exe by passing arguments in VC++ 2010. I have tried shellExecute, but it is not working. Can any one please help me. Thanks in advance. :)

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      IICTECH wrote:

      but it is not working.

      Please do not expect people to guess what is happening on your system. Show the relevant portion of your code and explain what happens when you run it.

      I 1 Reply Last reply
      0
      • L Lost User

        IICTECH wrote:

        but it is not working.

        Please do not expect people to guess what is happening on your system. Show the relevant portion of your code and explain what happens when you run it.

        I Offline
        I Offline
        IICTECH
        wrote on last edited by
        #3

        I want to integrate java with c++. I already created java exe called

        IKRYSignENC.exe

        . I have to pass command line arguments to execute this exe. For that,I have used shellExecute as follows

        ShellExecute (NULL, "open", "D:\\IKRYSignENC.exe", "D:\\NSRM3443\\Test\\ch21\\ENC_ROOT\\IN121MTM.000" "C:\\CASM_IKRYPT_JAVA\\Support\\Inputs\\CellKeys.txt" "D:\\", NULL, SW_SHOW);

        It is compiling with out any errors, but while running it is giving the error like

        Loaded 'D:\IKRYSignENC.exe', Binary was not built with debug information.
        Unloaded 'D:\IKRYSignENC.exe'

        Can any one please suggest me the correct usage of shellExecute. :)

        L _ D 3 Replies Last reply
        0
        • I IICTECH

          I want to integrate java with c++. I already created java exe called

          IKRYSignENC.exe

          . I have to pass command line arguments to execute this exe. For that,I have used shellExecute as follows

          ShellExecute (NULL, "open", "D:\\IKRYSignENC.exe", "D:\\NSRM3443\\Test\\ch21\\ENC_ROOT\\IN121MTM.000" "C:\\CASM_IKRYPT_JAVA\\Support\\Inputs\\CellKeys.txt" "D:\\", NULL, SW_SHOW);

          It is compiling with out any errors, but while running it is giving the error like

          Loaded 'D:\IKRYSignENC.exe', Binary was not built with debug information.
          Unloaded 'D:\IKRYSignENC.exe'

          Can any one please suggest me the correct usage of shellExecute. :)

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          How did you create this .exe file? Java normally produces .class or .jar files.

          1 Reply Last reply
          0
          • I IICTECH

            I want to integrate java with c++. I already created java exe called

            IKRYSignENC.exe

            . I have to pass command line arguments to execute this exe. For that,I have used shellExecute as follows

            ShellExecute (NULL, "open", "D:\\IKRYSignENC.exe", "D:\\NSRM3443\\Test\\ch21\\ENC_ROOT\\IN121MTM.000" "C:\\CASM_IKRYPT_JAVA\\Support\\Inputs\\CellKeys.txt" "D:\\", NULL, SW_SHOW);

            It is compiling with out any errors, but while running it is giving the error like

            Loaded 'D:\IKRYSignENC.exe', Binary was not built with debug information.
            Unloaded 'D:\IKRYSignENC.exe'

            Can any one please suggest me the correct usage of shellExecute. :)

            _ Offline
            _ Offline
            _AnsHUMAN_
            wrote on last edited by
            #5

            I think there is a problem in the command line arguments you are passing to the executable in the ShellExecute Function. This should be one string something like: "D:\\NSRM3443\\Test\\ch21\\ENC_ROOT\\IN121MTM.000 C:\\CASM_IKRYPT_JAVA\\Support\\Inputs\\CellKeys.txt D:\\"

            You talk about Being HUMAN. I have it in my name AnsHUMAN

            1 Reply Last reply
            0
            • I IICTECH

              I want to integrate java with c++. I already created java exe called

              IKRYSignENC.exe

              . I have to pass command line arguments to execute this exe. For that,I have used shellExecute as follows

              ShellExecute (NULL, "open", "D:\\IKRYSignENC.exe", "D:\\NSRM3443\\Test\\ch21\\ENC_ROOT\\IN121MTM.000" "C:\\CASM_IKRYPT_JAVA\\Support\\Inputs\\CellKeys.txt" "D:\\", NULL, SW_SHOW);

              It is compiling with out any errors, but while running it is giving the error like

              Loaded 'D:\IKRYSignENC.exe', Binary was not built with debug information.
              Unloaded 'D:\IKRYSignENC.exe'

              Can any one please suggest me the correct usage of shellExecute. :)

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              How would you run IKRYSignENC.exe outside of code?

              "One man's wage rise is another man's price increase." - Harold Wilson

              "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

              "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups