Search code examples
eclipseperlepic

Epic ( Eclipse ) Perl not working


I have installed Epic in my Eclipse to run perl scripts. Unfortunately, iam getting the below error while trying to run the script.

Failed to execute command line: "perl" "-v"

Cannot run program "perl" (in directory "."): CreateProcess error=2, The system cannot find the file specified

When i tried to run "perl -v" in command prompt, it worked fine on the day i installed Epic. After restarting, the command does not work and the folder C:\Dwimperl became empty.

  • Note : The script did not run and showed the same error in eclipse even on the day i installed Epic.

I am using Windows 7, Eclipse Luna Release 2(4.4.2), and Perl 5 (before restart, now deleted)

These are the contents of my System PATH

E:\app\mevenk\product\12.1.0\dbhome_1\bin
C:\ProgramData\Oracle\Java\javapath
%SystemRoot%\system32
%SystemRoot%
%SystemRoot%\System32\Wbem
%SYSTEMROOT%\System32??\WindowsPowerShell\v1.0\
C:\Program Files (x86)\Sony\VAIO Startup Setting Tool
%JAVA_HOME%\
C:\Program Files (x86)\QuickTime\QTSystem\
C:\Program Files (x86)\Skype\Phone\
%M2_HOME%\bin

Solution

  • If not already done, In the eclipse perl EPIC preferences you need to set the full path to your perl interpreter:

    e.g. In my Eclipse I have:

    Window -> Preferences-> Perl EPIC-> Perl executable = "C:\DEV\TOOLS\perl\perl\bin\perl.exe"