Execute java in Task

  • Hi, I have a jar file and i need execute it sentence:

    java -jar openpgp.jar -d "c:\example.asc" "c:\file pgp\readme.txt.asc"

    In Integration services, is there any task that execute this sentence?

    Thanks.

  • [font="Comic Sans MS"]

    Yes - you can use execute process task in order to do this. Go to process and you can specify the executable and the required arguments..

    [/font]

    [font="Comic Sans MS"]--
    Sabya[/font]

  • Hi,

    I need to do something similar. Did you get this working?

  • [font="Comic Sans MS"]

    Did you at least try?

    [/font]

    [font="Comic Sans MS"]--
    Sabya[/font]

  • Thanks for your help Sabya.

    I ended up using a bat file and executing it from the Execute Process Task in SSIS. I was hoping that I wouldn't have to use a bat file to execute the java code but I couldn't get the Execute Process Task to run that way. Who knows if you can actually run it that way.

    What I don't get is why you even bothered to post to my thread. If you were annoyed by my post, then why wouldn't you just ignore it and move on? So, it seems that all you succeeded in doing is wasting your time, my time, and the time of everyone reading this post.

    Thanks again for your help, Sabya.

  • [font="Comic Sans MS"]

    Yes - you can actually run this. Also this is the reason I asked if you have tried the approach at all. I bothered to write hoping you might post the error or problem you encountered while trying the solution provided...

    [/font]

    [font="Comic Sans MS"]--
    Sabya[/font]

  • i got this error when i tried this type of task.

    can anyone suggest me about the error?

    Warning: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.

  • Reddy Ksr (6/27/2012)


    i got this error when i tried this type of task.

    can anyone suggest me about the error?

    Warning: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.

    This is a warning saying you have too many errors. So you need to post the actual errors as well.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • Please go through my blog posts on executing java class file from SSIS.

    [/url]

    [/url]

    Let me know your queries further.

    sunilreddy
    http://msbimentalist.wordpress.com 🙂

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply