Hi all, I am totally new to PERL.I have a perl programm(runjava.pm) to load data in to an application. the relevant code is as follows =============================== sub jdk12Command ($$$$$$) { my ($vmProgram, $vmArguments, $programLibraryPath, $programClassPath, $programClassName, $programArguments) = @_; return java2Command("JDK122ROOT", "/jdk1.2.2", # "$jdkRoot/bin", "./jre/NT/1.2.2", "./jre/Solaris/1.2.2_05a", "./jre/HP-UX/1.2.2_07", "./jre/AIX/1.3.0/jre", "./jre/Linux-ia32/jre1.3", $vmProgram, $vmArguments, $programLibraryPath, $programClassPath, $programClassName, $programArguments); }
sub java2Command ($$$$$$$$$$$$$) { my ($rootVariable, $rootExample, $jreWin32, $jreSolaris, $jreHPUX, $jreAIX, $jreLinuxIA32, $vmProgram, $vmArguments, $programLibraryPath, $programClassPath, $programClassName, $programArguments) = @_; my $jdkRoot = $ENV{$rootVariable}; my $jre; my $bin; if ($jdkRoot) { $jre = "$jdkRoot/jre"; $bin = "$jdkRoot/bin"; } else { if ($vmProgram ne ProgramJava()) { die("Couldn't find $rootVariable: " . "Try 'set $rootVariable=$rootExample'" # " $vmProgram " . # " $jreWin32 " . # " $rootVariable " . # " $rootExample " =========================================== It returns error -loaddb: Loading data ... Couldn't find JDK122ROOT: Try 'set JDK122ROOT=/jdk1.2.2' at bin/perl/RunJava.pm line 305. ::Util::__ANON__('Couldn\'t find JDK122ROOT: Try \'set JDK122ROOT=/jdk1.2.2\' at b...') called at bin/perl/RunJava.pm line 305 I have given JDK root in both classpath & path Can someone plese help thanks Dilip __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]