To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=81445
------- Additional comments from [EMAIL PROTECTED] Wed Sep 26 08:08:26 +0000
2007 -------
@ronyf, re CLASSPATH: Your links miss (or do not explicitly state) that the
link between a CLASSPATH environment variable and the Java classpath is a
feature of the java executable, not a feature of the JVM in general (e.g., when
instantiated via the JNI Invocation API). See for yourself:
$ cat test.c
#include <stdio.h>
#include <stdlib.h>
#include <jni.h>
int main() {
JavaVMInitArgs args;
JavaVM * jvm;
JNIEnv * env;
jclass sys;
jmethodID get;
jstring cp, val;
jsize len, i;
jchar const * buf;
args.version = JNI_VERSION_1_2;
if (JNI_GetDefaultJavaVMInitArgs(&args) != JNI_OK) abort();
if (JNI_CreateJavaVM(&jvm, (void **) &env, &args) != JNI_OK) abort();
sys = (*env)->FindClass(env, "java/lang/System");
if (sys == NULL) abort();
get = (*env)->GetStaticMethodID(
env, sys, "getProperty", "(Ljava/lang/String;)Ljava/lang/String;");
if (get == NULL) abort();
cp = (*env)->NewStringUTF(env, "java.class.path");
if (cp == NULL) abort();
val = (*env)->CallStaticObjectMethod(env, sys, get, cp);
if ((*env)->ExceptionCheck(env)) abort();
len = (*env)->GetStringLength(env, val);
buf = (*env)->GetStringChars(env, val, NULL);
if (buf == NULL) abort();
printf("java.class.path <");
for (i = 0; i < len; ++i) {
jchar c = buf[i];
if (c >= ' ' && c != '\\' && c <= '~') {
printf("%c", (char) c);
} else {
printf("\\u%04X", (unsigned int) c);
}
}
printf(">\n");
(*env)->ReleaseStringChars(env, val, buf);
if ((*jvm)->DestroyJavaVM(jvm) != JNI_OK) abort();
}
$ cc test.c -ljvm
$ ./a.out
java.class.path <>
$ CLASSPATH=foo ./a.out
java.class.path <>
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]