Dear All
I'm having a little trouble getting a Java prog to work online.
I am using the following code to embed it:
<applet
code=["WebApp"]
width=[100] height=[100]
alt=["Description of Java applet"]>
</applet>
However in the Java consule I get the following error message -
Laden: Klasse ["WebApp"] nicht gefunden
java.lang.ClassNotFoundException: ["WebApp"]
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: sun.net.ftp.FtpLoginException: Not logged in
at sun.net.ftp.FtpClient.readReply(Unknown Source)
at sun.net.ftp.FtpClient.issueCommand(Unknown Source)
at sun.net.ftp.FtpClient.login(Unknown Source)
at sun.net.www.protocol.ftp.FtpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(Unknown Source)
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
I assume this means that I have not made the class "WebApp" - first line of the message.
I realise now that my "WebApp" has the extension .Java - should it be .class?
Within the file "WebApp.java" I have the lines (I changed it from Main after seeing that the java consule was looking for the "class" WebApp) -
public class WebApp extends JApplet { //Main
public WebApp(){} //Main
public static void webapp (String[] args) throws IOException //main
{..........
Thanks in advance.
Dan