diff -ruN nagios-plugins-1.4.0alpha1-save/contrib/check_javaproc.pl nagios-plugins-1.4.0alpha1/contrib/check_javaproc.pl
--- nagios-plugins-1.4.0alpha1-save/contrib/check_javaproc.pl	2002-11-18 21:58:58.000000000 +0000
+++ nagios-plugins-1.4.0alpha1/contrib/check_javaproc.pl	2004-03-18 16:55:24.000000000 +0000
@@ -22,13 +22,20 @@
 ########################################################################
 ####
 
+BEGIN {
+  if ($0 =~ m/^(.*?)[\/\\]([^\/\\]+)$/) {
+    $runtimedir = $1;
+    $PROGNAME = $2;
+  }
+}
+
 require 5.004;
 use POSIX;
 use strict;
 use Getopt::Long;
 use vars qw($opt_w $opt_c $verbose $classname);
 use vars qw($PROGNAME);
-use lib "utils.pm" ;
+use lib $main::runtimedir;
 use utils qw($TIMEOUT %ERRORS &print_revision &support &usage);
 
 $PROGNAME="check_javaprocs";
