I normally don't do Java but I want to do some stuff I can't do with Javascript or PHP.
For testing I am trying to execute the simplest Java program:
import java.io.*;
class simple
{ public static void main(String[] args)
{ System.out.println("What the hell is the problem.");
} }
From a telnet (SSH) connection it runs fine on the command line.
However, when I try to run it as an applet in a browser, the normal gray applet area displays but nothing else. When I move my cursor over the applet area it says that "simple.class" file (chmod'ed to 777 just in case) can't be found. Why? It resides in the same directory as the HTML file:
<HTML>
<BODY>
Before applet<P>
<applet code="simple.class" WIDTH=600 HEIGHT=300>
</applet><P>
After applet
</BODY>
</HTML>
Bob from Las Vegas


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks