Hi guys...
I have finally managed to install JDK1.1.7_v1a and JDK1.2... You won't
imagine what I was doing wrong! As I previously wrote, I did download the
proper archives (all of them, and not only the native threads one, as
somebody suggested). Also, I wasn't running from the <jdk_home>/bin
directory (which is problematic only for JDK 1.2, anyway).
What happened is that, to download the tar files, I used an NT machine,
linked to my Linux PC via Samba. So far so good. But, being lazy in typing
"tar -xvf" under Linux, I used WinZip to un-tar and then copied the
extracted files into the Linux JDK directory (1.1.7 or 1.2, respectively)
directly. Well, I don't know why (please somebody explain), but with this
procedure I kinda "lost" files during the WinZip extraction!!! The jdk/bin
directory contained only a few of the scripts, (.java_wrapper, java-rmi.cgi,
checkVersions, and jre for JDK1.1.7 and only the first two of these for JDK
1.2)!!! Weird! So far I have un-tared several archives with WinZip, without
any problems. Is there any shell script automatically running after
un-taring with tar, which (reasonably) WinZip cannot execute?
I know have a silly problem with JDK 1.1.7. Namely, while I can compile my
application (containing several .java files organised in a number of
packages), when I attempt to run it, it doensn't run! My environment is
$JAVA_HOME = <JDK 1.1.7 installation directory>
$CLASSPATH = .:$JAVA_HOME/lib/classes.zip:$JAVA_HOME/swingall.jar
I can compile the source files from whichever directory I want (typing
$JAVA_HOME/bin/javac <source dir>/*.java) without any problems. However,
when I try running a (just compiled) class, even from its directory, I get a
"Can't find class" message. When I attempt the
(not-so-redundant-as-I-believed) command
$JAVA_HOME/bin/java -classpath $CLASSPATH <classname>
I get a "Unable to initialize threads: Can't find java/lang/Thread" message.
I have even played with the scripts in $JAVA_HOME/bin, inserting debugging
comments, and they seem to be after the correct path... This must be a
really silly error, could someone please help? I suspect all this has to do
with paths, since JDK 1.2 works just fine...
> Also, is version 3 of the Linux jdk1.1.7 implementation for libc2.0 (as
> well as libc2.1) or not? I tried to use v3, but refuses to find
> "javax.swing" (i.e., seems as if it doesn't read the swingall.jar file,
> which, however, is contained in the CLASSPATH...)
>
Thanks,
Dimitris
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]