On Wed, 14 Oct 1998 13:29:45 +0100, Danny Ayers wrote:

>Hi,
>Thanks for all the suggestions relating to CLASSPATH - I though this
>would be a fairly quiet list (Java&Linux = FairlyObscure^2, mail->0),
>not so!
>
>I've still got a problem though. When trying to run java mpEDIT (nice
>basic java text editor I downloaded) I get 'Can't find class
>java.lang.Thread'. Now other stuff runs ok, and the lib is there in the
>.zip file. mpEDIT runs ok on a Windows machine.

Hmmm...  This tends to happen when the Java classes.zip file is not found
by the JVM.

I have seent this in two cases:

1)  When Kaffe is installed since it will answer to "java" and does
    not automatically find its own classes.zip file (since it used to
    use Sun's)

2)  When a program wrapper script uses the jre and the -cp/-classpath
    option since this option *replaces* the classpath that the java_wrapper
    supplies.  This is, IMHO, a bug, but it is how it works.  In these
    cases, it is sometimes needed to actually have CLASSPATH set to
    point at classes.zip.

I personally think that no user should every point at classes.zip and
that the system should automatically make sure it is at the end of
the classpath so that things work.  However, there are so many different
startup scripts for so many different programs written by so many
different people who have had to deal with the many different behaviors
of past Sun JDK releases, it is hard to get this all cleaned up.

>I've seen mention of the green_threads stuff (but nothing relating
>directly to my problem) is this related?

No...  "green" threads are also known as "user based" threads which
means the threading is handled by the JVM on its own vs "native" threads
which uses the operating system kernel to manage the threading.  Either
way works, albeit in different ways.  Native threads can be overall better
but only if the OS supports a good threading model without too much
overhead.  OS/2 and Solaris both have very nice threading support.  Windows
NT has reasonable threading support but not very good performance.  The
Linux kernel threading support is rather high in overhead and there are
complications with respect to the way the GC works.


Michael Sinz -- Director of Research & Development, NextBus Inc.
mailto:[EMAIL PROTECTED] --------- http://www.nextbus.com
My place on the web ---> http://www.users.fast.net/~michael_sinz

Reply via email to