Hi Nathan:

Thank you for your information.

I downloaded jdk_1.1.7-v3-glibc-x86-native.tar.gz and unpack it 
from the $JAVA_HOME directory.  When I run "java -native app", I
got an error message like:

"Cannot open /proc/00762 for GC/mnt/e/Linux/java/jni/Sample3/app", 

and every time when I re-try "java -native app", the number 00762 
is changed to another number.  Nothing fancy in app.  It's only
a helloWorld application, and located in /mnt/e/Linux/java/jni/Sample3/
I guess JVM tried to create a native thread since each process 
(heavyweight or light) has a corresponding directory under /proc dir.

BTW, this happened on RH6.1 and I run the app as root.  "java app" and
"java -green app" work fine.  I don't know what GC (before /mnt/e...) is.

Thank you.


Lee

> 
> Q3: With BlackDown 117_v3, the default behavior should be "green".
>     I can run a simple java application with "java app" or
>     "java -green app" without any problem (they are the same,right?).
>     But got an error msg like "java was not found in
>      /usr/local/jdk117_v3/bin/../bin/i686/native_threads/java" when
>     run it with "java -native app".  Do I miss something?
> 
> Q4: What compile options I need to specify to pick up the right lib
>     if I want to run java app with green or native thread?

No changes needed with compiling.  The reason you can't run native is
that you don't have a native version installed in your JDK installation
tree. Visit a mirror site and grab jdk_1.1.7-v3-glibc-x86-native.tar.gz:
unpack it from the $JAVA_HOME directory and you'll get the native
versions.

By way of background, the decision on which threading model to use is
made in the script ($JAVA_HOME/bin/java) that launches the java
executable: it looks at "-green" or "-native" (yes, it defaults to
green), sets up the environment, and decides which actual executable
(green or native) to run.

Nathan


> 
> Thank you.
> 
> Lee
> 


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to