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]

Reply via email to