Commit 12e7d63a by Bryce McKinlay

natSystem.cc (init_properties): set java.lang.classpath property.

        * java/lang/natSystem.cc (init_properties): set java.lang.classpath
        property.

From-SVN: r31981
parent b5f853e6
......@@ -261,9 +261,9 @@ java::lang::System::init_properties (void)
SET ("java.specification.name", "Java(tm) Language Specification");
SET ("java.specification.vendor", "Sun Microsystems Inc.");
// FIXME: how to set these given location-independence?
// FIXME: how to set this given location-independence?
// SET ("java.home", "FIXME");
// SET ("java.class.path", "FIXME");
SET ("file.encoding", default_file_encoding);
#ifdef WIN32
......@@ -296,6 +296,13 @@ java::lang::System::init_properties (void)
}
#endif /* HAVE_UNAME */
char *classpath = ::getenv("CLASSPATH");
// FIXME: find libgcj.zip and append its path?
if (classpath != NULL)
SET ("java.class.path", classpath);
else
SET ("java.class.path", ".");
#ifndef NO_GETUID
#ifdef HAVE_PWD_H
uid_t user_id = getuid ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment