[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: JDK says can't open /proc/xxxxx



On Mon, Jan 17, 2000 at 09:12:45AM +0000, Colin Watson wrote:
> reznaeous@earthlink.net (Mike Werner) wrote:
> >Thanks Nate, but I found the problem.  Well, it may not be the actual
> >problem but it lets java work for me.  It just figures that I'd figure
> >this out within 10 minutes of sending my post.  Turns out that the
> >environment variable FLAGS_CLASS=-green was being ignored.  I modified
> >/usr/lib/jdk1.1/bin/.java_wrapper (that being the script that the java
> >commands all call) to force green threads.
> 
> For what it's worth, that script doesn't appear to know anything about
> FLAGS_CLASS, but 'export THREADS_FLAG=green' solves the problem for me
> without having to edit the wrapper script.

Quoted from /usr/lib/jdk1.1/bin/.java_wrapper (I'm the one that commented
out the lines - that's the change that made it work here):
########################################################
# This section modified to force green threads.
####
#if [ -x ${J_HOME}/bin/${ARCH}/native_threads/${progname} ]
#then
#    DEFAULT_THREADS_FLAG=native
#else
    DEFAULT_THREADS_FLAG=green
#fi

#if [ "${THREADS_FLAG:-${DEFAULT_THREADS_FLAG}}" = native ]
#then
#    THREADS_TYPE=native_threads
#else
    THREADS_TYPE=green_threads
#fi
export THREADS_TYPE

It may not know about FLAGS_CLASS but the changes I made to the script
let it work for me.  I've now changed the script back to the original and
tried the THREADS_FLAG=green that you mentioned - it worked just fine.
Thanks for the help.
-- 
Mike Werner  KA8YSD           |  "Where do you want to go today?"
ICQ# 12934898                 |  "As far from Redmond as possible!"
'91 GS500E                    |
Morgantown WV                 |  Only dead fish go with the flow.


Reply to: