$ENV{CLASSPATH} = ...; my $output = `java ...`; # no need to specify -classpath here