How to execute java program from perl

hello all
how can i run the java command that can eccept N numbers of args for example :
java -cp .;foo.jar myApp 1 "ww"
or
java -cp .;foo.jar myApp 1 2 3 "ww"
or
java -cp .;foo.jar myApp "args1" "args2" "args3"

Thanks

look into perls system() function if all you need to do is run the external application but not get any data back from it. If you need it to return data to the perl program look into qx//.