Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invoke Java from Perl

 
mike zhang
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a perl program, how do I invoke a java program from perl ? Any resource that I can find some example ? By the way, I need to pass some parameters when I invoke the java application, is it doable ?
Thanks,
Mike
 
Aleksey Matiychenko
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think this is a java problem. In perl you use system command as in
system("java myprogram a b c"); where a b c are your parameters passed to java main method.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic