Hello,


Thanks for taking time to answer me.

I did include classes.zip in the CLASSPATH, and to make sure I did,
after reading
your message, I tried to following command "unzip -l $CLASSPATH" and I
did get the
list of the content of classes.zip.  Even when I unset CLASSPATH, the
same error
occurs...  It looks like that the program is unable to read into
classes.zip.

I am not, yet, a java programmer.  I am also a relatively new user of
Linux (since
last january).  As a lot of programmers, I suppose, I am more familiar
with Redmond
(or Borland) tools : C++, Pascal; etc.

Here is a copy of the message I submitted at first to
[EMAIL PROTECTED]
:

 --------------------------------------------------------------------
Hello,

I have installed jdk-1.1.7_v1a glibc on a RedHat 5.2 Linux i386 , with
2.2.10
kernel (rpm installation).

When trying to run javac, I get the following message :
    "unable to initialize threads: cannot find class java/lang/Thread".

The classes.zip file is installed in the lib directory, and the
java/lang/Thread.class exists in the file.

I have both tried without any  java system variables initialised
(verified with the
set command), and with the JAVA_HOME,  and CLASSPATH set as explained in
the
documentation - same error....

The install directory is /usr/local/jdk117_v1a..

I have dowloaded jre117_v1a also to use with StarOffice 5.1.  It seems
that I have
a similar problem with the java/lang/Thread, I get the following message
:

    "mac/java_lang_String.c:738: java_lang_String_intern:
     assertion '!"Forgot to call use_java_lang_String(env) before
calling
     method intern ()Ljava/lang/String;' failed"

when trying to run the Java Console. Strangely enough as root, the Java
Console
under StarOffice works, as well as the java applets.   StarDivision
support was
unable to explain that,  maybe because of some obscure configuration
problem of my
system.....

(By the way, I have tried, unsucessfully, to run javac as root!!!)

In the mean time, I cannot use jdk,  I would be glad to get some help :
does
anybody have an idea of the cause of my problem ?  Would be glad to get
it working
:-)

Thanx

Hermon

------------------------------------------------------------------------

Regards,

Hermon

[EMAIL PROTECTED] wrote:

> > Thanx, but it was set, as I explained in my mail (unless you didn't get a full
> > copy...
>
> You said you'd set it according to the documentation, but are you sure you
> haven't forgotten to include classes.zip?
>
> I don't know if you're a Java programmer or not, but the error message you
> are getting means that, as far as the JVM is concerned, java.lang.Thread
> doesn't exist. That indicated that the .jar/.zip/directory containing that
> class is not in the CLASSPATH. And in this case, the archive in question
> is classes.ip. I'd look for typos in the CLASSPATH.
>
> Or better yet; unset the CLASSPATH all together ("unset CLASSPATH" if you're
> in bash), and then run javac again. Do you get the same error message? If
> not, I am 99.9% certain that there's something wrong with the CLASSPATH.
>
> As I said, for the JVM to work you have to
>
> * run it with no CLASSPATH set (it's *not* sufficient to set the CLASSPATH
> to "" - it must not *exist*).
>
>    ---OR---
>
> * include classes.zip in the CLASSPATH *aswell* as any other archive you
> needed.
>
> --
> / Peter Schuller
>
> PGP userID: 0x5584BD98 or 'Peter Schuller <[EMAIL PROTECTED]>'
> Key retrival: Send an E-Mail to [EMAIL PROTECTED]
> E-Mail: [EMAIL PROTECTED] Web: http://hem.passagen.se/petersch
>
>   ------------------------------------------------------------------------
>    Part 1.2Type: application/pgp-signature



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

Reply via email to