Do you have Oracle 8i installed in your system. If then check the classpath and point
it to the Java Classpath.
Regds
Murugan K Patham
480 - 990 4200 Ext 2712
>>> [EMAIL PROTECTED] 02/12 3:54 PM >>>
I have several programs that give me the same error.
Exception in thread "main" java.lang.NoClassDefFoundError: clicker
How do I solve this is it a problem with the way I set it up or with the
program.
textarea.java
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
public class textarea extends Applet implements ActionListener {
TextArea textarea1;
Button button1;
public void init(){
textarea1 = new TextArea(" ", 5, 20);
add(textarea1);
button1 = new Button("Clicker Here");
add(button1);
button1.addActionListener(this);
}
public void actionPerformed (ActionEvent event){
String msg = "Welcome to Java";
if(event.getSource() == button1){
textarea1.insert(msg, 0);
}
}
}
clickers.java
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
public class clickers extends Applet implements ActionListener{
TextField text1, text2;
Button button1, button2;
public void init(){
text1 =new TextField(20);
add(text1);
button1 = new Button ("Click Here!");
add (button1);
button1.addActionListener(this);
button2 = new Button ("Welcome to Java");
add(button2);
button2.addActionListener(this);
}
public void actionPerformed(ActionEvent event){
String msg = new String ("Welcome to Java");
if( event.getSource() == button1){
text1.setText("hello");
}
if( event.getSource() == button2){
text2.setText("what");
}
}
}
~
~~
~~~
*******************************************************************************
Joseph Kimo Kreis
Web Developer for MS&E Department
Terman Engineering Center
Stanford University
Stanford, CA 94305-4026
mailto:[EMAIL PROTECTED]
********************************************************************************
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets