Not able to run perl scripts via my java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Not able to run perl scripts via my java

priya465
Try adding:

use FindBin;
use lib $FindBin::RealBin;
This will add the directory that the script is in to the library search path.

Edit: The shell script is not working because it changes the environment of the shell process, not the Java process that spawned it.