I'm trying to execute a Java program from a perl script.
In the command line I wrote:
java -cp C:\\Users\\Ivan\\workspace2\\Algo\\bin gale_shapely.gs1 1000
and it worked just fine.
When I try to transport it to my perl script like this:
#!/usr/bin/perl
use warnings;
use strict;
system("java -cp C:\\Users\\Ivan\\workspace2\\Algo\\bin gale_shapely.gs1 1000");
I run into the error:
'java' is not recognized as an internal or external command, operable program or batch file
I'm fairly certain that I added Java to my PATH variable as well. My PATH variable is:
%JAVA_HOME%;C:\Ruby193\bin;%PYTHONDIR%;%PERLDIR%;
with JAVA_HOME as:
C:\Program Files (x86)\Java\jdk1.8.0_11\bin