Hi,
The parameter to appletviewer is an HTML file, make sure you're calling the
HTML file and not the .class file. If you are calling the HTML file, in the
CODE= parameter you need to specify the ".class" extension (confusing? yes. In
applets you use the .class, in applications you don't)
Hope this helps,
-Mario.
Ryuji Yokoyama wrote:
> 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);
> }
> }
>