* java/lang/natRuntime.cc (insertSystemProperties): Set
java.class.path to "." if CLASSPATH not given or empty.
Do you think we should handle the case were CLASSPATH is set to the
empty string in this way?
Cheers,
Mark
diff -u -r1.47.2.6 natRuntime.cc
--- java/lang/natRuntime.cc 13 Apr 2005 21:36:55 -0000 1.47.2.6
+++ java/lang/natRuntime.cc 14 Apr 2005 23:16:35 -0000
@@ -624,8 +624,10 @@
if (!path)
{
char *classpath = getenv("CLASSPATH");
- if (classpath)
+ if (classpath && classpath[0] != 0)
SET ("java.class.path", classpath);
+ else
+ SET ("java.class.path", ".");
}
}