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
}
#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 ();