JDK 1.2 won't run JFC demo

1999-04-01 Thread Joe Lin

Hi,

I have downloaded the JDK 1.2 from blackdown.org.  and I tried to run the
JDK 1.2 JFC demo (FileChooserDemo). But I got an Linker error as follows:

Exception in thread "main"
java.lang.UnsatisfiedLinkerError:/usr/jdk1.2/jre/lib/i386/libfontmanager.so:
libstdc++-lib6.0-1.so.2:cannot open shared object file:No such file or
directory
   at java.lang.ClassLoader$NativeLibraryLoad(Native Method)
   at java.lang.ClassLoader.LoadLibrary0(Compiled Code)
   ..
   ...
I checked my directory and the file
"/usr/jdk1.2/jre/lib/i386/libfontmanager.so" is indeed there.

At another instance I tried to run the tree demo and this time I got an
  java.lang.ClassNotFoundException: javax/swing/tree/DefaultMutableTreeNode

I'm using RedHat 5.2 but I'm a newbie on Linux. How to fix this?

Thanks

Joe


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



Blackdown JDK 1.2 won't run RMI application?

1999-04-01 Thread Joe Lin

Hi,

I downloaded the JDK1.2 for Linux from blackdown.org.

I tried to run a simple RMI application. There are basically two errors. 
1. I can't start RMIRegistry. The error message is:
   java.lang.ClassNotFoundException: sun/rmi/registry/RegistryImpl

2. I tried to start the application without RMIRegistry. The error message
is:
   java.lang.ClassNotFoundexception: java/rmi/RemoteException.

Am I missing something obvious?

Thanks.

Joe


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



How to make JDK1.2-pre-v1 as my default JVM

1999-04-01 Thread Joe Lin

Hi,

I have realized after many agonizing hours that some of my problem is really
due to Kaffe. I'm currently running RedHat 5.2 and I downloaded JDK preview
v1. I set the PATH variable to point to "/usr/jdk1.2/bin". However, this
does not prevent Kaffe VM to kick in if I simply type "java .." in the
command line. I have to type "/usr/jdk1.2/bin/java..", instead. I'm new
to Linux. Is there any way I can make the JDK 1.2 VM as the default? Thanks.

Joe


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