This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Invoke Java from Perl Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Invoke Java from Perl" Watch "Invoke Java from Perl" New topic
Author

Invoke Java from Perl

mike zhang
Ranch Hand

Joined: Feb 26, 2002
Posts: 59
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

Joined: Apr 03, 2001
Posts: 178
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.
 
jQuery in Action, 2nd edition
 
subject: Invoke Java from Perl
 
Similar Threads
Is there any way where you can pass values from java to the perl program?
How can you pass the arguments from the java program to the perl program?
Is there any way where you can pass values from java to the perl program?
Do I have to use JNI to invoke Korn shell or perl script from java ?
perl script sending signals to java