Understanding this error list
- From: "bH" <bherbst65@xxxxxxxxxxx>
- Date: 26 Oct 2006 11:07:44 -0700
Hi All,
I have this program in an iBook, Mac OS 9.2.2 with Java 1.0.2.
While it compiles with no error, it refuses to run based on the errors
noted below.
Help would be appreciated.
bH
import java.applet.*;
import java.awt.*;
import java.net.*;
public class URLShoTextBtn_06a extends Applet {
TextField textFld = new TextField(30);
Button GetTextBtn = new Button("Get Text");
Panel upperPanel = new Panel();
public void init() {
setLayout(new BorderLayout(5,5));
upperPanel.setBackground(Color.blue);
add("North", upperPanel);
upperPanel.add(textFld );
upperPanel.add(GetTextBtn);
}
// event method applies to java version 1.0.2 iBook and a one button
only
public boolean action(Event evt, Object arg) {
if (evt.target instanceof Button){
try {
getAppletContext().showDocument(new URL(textFld.getText()));
}
catch (Exception e) {;}
}
return(true);
}
}
10/26/2006 @ 11:15:5
An exception occurred:
java.lang.ClassNotFoundException:
URLShoTextBtn_06a.class
at
com.apple.mrj.JManager.JMAppletClassLoader_IMPL.loadClass(JMAppletClassLoaderOld.java)
at
com.apple.mrj.JManager.JMAppletClassLoader_IMPL.loadClass(JMAppletClassLoaderOld.java)
at
com.apple.mrj.JManager.JMAppletClassLoader_ROOT.loadClass(JMAppletClassLoaderOld.java)
at
com.apple.mrj.JManager.JMAppletViewer_OLD.doLoadCode(JMAppletViewerOld.java)
at
com.apple.mrj.JManager.JMAppletViewer_OLD.setState(JMAppletViewerOld.java)
at
com.apple.mrj.JManager.JMViewerEvent.post(JMAppletViewerOld.java)
at
com.apple.mrj.JManager.AVDispatcherThread.run(JMAppletViewerOld.java)
.
- Follow-Ups:
- Re: Understanding this error list
- From: Andrew Thompson
- Re: Understanding this error list
- From: Hasan Tariq
- Re: Understanding this error list
- Prev by Date: Re: i cant seem to figure something simple out
- Next by Date: Re: Netbeans JAR file execution from command line
- Previous by thread: Remote development with Eclipse
- Next by thread: Re: Understanding this error list
- Index(es):