James Mansell wrote:
> Hi Janet,
>
> Yes, I did the same thing.
>
> I am using Redhat 6.1.
>
> I found that under /usr/bin there are java executables put there as part of
> the default Linux installation. This old version of java is what will be
> referred to if /usr/bin comes before your references to the new version of
> java in your $PATH. So you must make sure that /usr/bin comes after your new
> references in $PATH.
That "java" is probably kaffe, which is installed by default in some Linux distros. To
get
rid of it on RH and other RPM-based distributions, run as super-user: "rpm -e kaffe".
Nathan
>
>
> However I didn't get the same messages as you. I think you need to be using
> the glibc 2.1 C library for this version of java, so maybe you could check
> that as well.
>
> Blackdown guys - I logged this as a bug ID: 1817 please send it to the trash
> can and put it down to newbie ignorance. I tried to do it on the bug
> reporting web page and it wouldn't let me, and then sent a mail to you which
> bounced back as undeliverable.
>
> Rgds
> James Mansell
>
> "Janet" <[EMAIL PROTECTED]> wrote:
> Hello everyone.
>
> I'm totally new to Linux. I downloaded jdk-1.2.2 (RC4) of the Blackdown org.
> And I set the path env varible to point to the jdk1.2.2/bin.
>
> When I used javac to compile a simple HelloWorld .java file, it complained:
> ......
> /home/jdk1.2.2/bin/i386/native_threads/java: error in loading shared
> libraries: /home/jdk1.2.2/jre/lib/i386/native_threads/libhpi.so: symbol
> sem_init, version GLIBC_2.1 not defined in file libpthread.so.0 with link
> time reference
> ......
> What's this meaning?
> I tried several times and found there was already HelloWorld.class there.
> And I run it. It works!
> And I tried to use "javac" again, this time it's right.
>
> I was totally confused!
>
> And I've heard you can use "java -version" command to verify whether your
> downloaded JDK was correct.
> And I tried it.
> But the result is: "JDK 1.1"!!!
> But what I downloaded is JDK1.2.2! It's written in the README file in it!
> Does it mean my JDK1.2.2 isn't corrct?
>
> And I tried another simple program. This program uses swing component :
> JFrame.
> And when compiling, it complains : Not found class JFrame.
>
> Need I set the CLASSPATH? How to? (I read that you may set it as "export
> CLASSPATH=/usr/local/jdk1.2.2/lib/classes.zip". But on my computer there is
> no classes.zip under that path. so what can I do?)
>
> Any hints and suggestion is greatly appreciated!!! I'm eager to know the
> answer!
>
> With my best regards:
> Janet
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
> ____________________________________________________________________
> Get your own FREE, personal Netscape WebMail account today at
>http://webmail.netscape.com.
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]