Hello All! 

I am newbie and have a problem.  I downloaded jdk-1_1_6-5_glibc_i386.rpm
and installed it.  When I tried to use appletviewer, I got following error
message. "I/O exception while reading /root/temp/hello Make sure that hello
is a file and readable."  I added my .bashrc file to
CLASSPATH=.:/usr/bin/jdk-1.1.6;  My code is following.  I don't think this
is a problem of my code.  What else do I have to do?  I am using RedHat 5.1.

Thanks in advance. 

import java.awt.*;
import java.applet.*;

public class hello extends Applet
{
 public void paint(Graphics g)
    {
      g.drawString("Hello from Applet", 60, 75);
    }
}
 

Reply via email to