Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Execute Process Task to execute a .jar


Execute Process Task to execute a .jar

Author
Message
HankL
HankL
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 13
I'm trying to run an Execute Process Task that initiates a java program. The error I receive when I run it in debug mode is: [Execute Process Task] Error: An error occurred with the following error message : “The specified executable is not a valid application for this OS platform.”. The Process fields in the Execute Process Task are filled out as follows:
RequireFullFileName = True
Executable = C:\Users\john.doe.corp\Desktop\Calc\rollupcalc.jar
Arguments = java -classpath .;rollupcalc.jar co.corp.Application filename.csv 12
WorkingDirectory = C:\Users\john.doe.corp\Desktop\Calc

All other fields are left at the default value.

Any and all help will be greatly appreciated.

HankL.
Vikash Kumar Singh
Vikash Kumar Singh
SSC Journeyman
SSC Journeyman (81 reputation)SSC Journeyman (81 reputation)SSC Journeyman (81 reputation)SSC Journeyman (81 reputation)SSC Journeyman (81 reputation)SSC Journeyman (81 reputation)SSC Journeyman (81 reputation)SSC Journeyman (81 reputation)

Group: General Forum Members
Points: 81 Visits: 243
I do not come from a Java background. I do not even know the suggestion below might help you or not but still putting my thought here.

I assume that you are running a Java Program. Can you run this Java Program using Command Prompt or simply by putting the program name(jar) and arguments in RUN window. If so I think you are on track.

Why not you create a batch file and put all the program name, arguments, working direcotry into it. Run that batch file from SSIS (Execute Process Task).

Vikash Kumar Singh || www.singhvikash.in
Orlando Colamatteo
Orlando Colamatteo
SSCrazy Eights
SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)SSCrazy Eights (8.3K reputation)

Group: General Forum Members
Points: 8259 Visits: 14368
Windows does not know what to do with a file with a .jar extension by default. You will need to pass the path to the .jar into the JRE using a fully qualified path to the runtime (e.g. C:\Program Files\...etc...\java.exe) in your Execute Process Task and making the reference to the .jar file a command line argument.

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search