calling a java class from perl without using system -


i have java code @ server side calls perl @ client side , perl calls java class validation client side.in server side expect output message of string type constructed @ client side java class .for calling java class in perl calling below

 $command = $java . ' -classpath ' . $classpath . ' ' . $secoptions . ' ' . $classname . ' ' . $serviceurl . ' ' . $composites; print `$command`; 

can perl call java without system command?the issue messages getting printed printed in java class want assign output java class , parse , send server side

it's difficult tell question want might trick

open(my $program, "$command|") or die "$command $!";  #open program on pipe @results=(); while(<$program>) {   push @results,$_;  # store output } 

for other options see perldoc perlipc http://perldoc.perl.org/perlipc.html


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -