>>>>> Aaron Mulder writes:

    Aaron> Is there any workaround?  I installed Oracle for Linux, and
    Aaron> all it's tools run via java -native, and there are *ever so
    Aaron> many* scripts to edit to change that!  ;)

You can modify jdk117_v3/bin/.java_wrapper:

--- jdk117_v3/bin/.java_wrapper.bak Sun Oct 17 19:41:45 1999
+++ jdk117_v3/bin/.java_wrapper Sun Oct 17 19:41:45 1999
@@ -52,7 +52,7 @@
 #
 if [ "$1" = "-native" -o "$1" = "-green" ]; then
     if [ "$1" = "-native" ]; then
-      THREADS_TYPE=native_threads
+      THREADS_TYPE=green_threads # workaround for proc bug
     else
       THREADS_TYPE=green_threads
     fi

    Aaron> P.S. to Nathan: I have a /proc filesystem and the kernel is
    Aaron> compiled from the Red Hat 2.2.12 source with some of the
    Aaron> shared memory size tweaks for Oracle.

I don't remember when this bug showed up first, maybe it was with
glibc-2.1.2.

    Aaron> On 17 Oct 1999, Juergen Kreileder wrote:
    >> >>>>> Aaron Mulder writes:
    >> 
    Aaron> I just installed the native threads add-on to the 1.1.7 JRE
    Aaron> and whenever I try to use it (jre -native test) I get the
    Aaron> following result:
    >> 
    Aaron> Cannot open /proc/02891 for GCCould not create Java VM
    >> 
    Aaron> Where the proc number changes every time...  I'm using Red
    Aaron> Hat6.1 on a 2-processor system.  Any thoughts would be
    Aaron> appreciated.
    >> 
    >> It's a bug.  Fixed in the next release.


        Juergen

-- 
Juergen Kreileder, Blackdown Java-Linux Porting Team
http://www.blackdown.org/java-linux.html


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

Reply via email to