wood burning stoves 2.0*
The moose likes JDBC and the fly likes Signed Applet: NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Signed Applet: NoClassDefFoundError " Watch "Signed Applet: NoClassDefFoundError " New topic

Signed Applet: NoClassDefFoundError

Payam Mamaani

Joined: Jul 04, 2001
Posts: 7
I'm using a signed applet with a jar file. I have five class file in the jar file but when I try to run the applet in appletviewer it shows this error message:
java.lang.NoClassDefFoundError: Project1$5
at Project1.showFieldCombo(Project1.java:328)
at Project1.ComboBoxShow(Project1.java:472)
at Project1.init(Project1.java:489)
at sun.applet.AppletPanel.run(AppletPanel.java:344)
at java.lang.Thread.run(Thread.java:484)
The jar file is in my classpath and all of the class files are listed in manifest file.
(when I change the code to a JFrame and run it as an application it works but I want to connect a local database in a JApplet code and I have to use signed applet but it dosn't work)
How can I solve this problem?
Thanks a lot
Payam Mamaani

Joined: Jul 04, 2001
Posts: 7
The source code of showFieldCombo is:
public void showFieldCombo ()
db.getTable("SELECT Fields FROM Fields ");
Vector items = new Vector();
for (int i=0; i<db.rows.size(); i++)>
items.addElement( db.rows.elementAt( (i)));
//--- Field Combo Box

mycom.fieldCombo.addActionListener(new ActionListener()
public void actionPerformed ( ActionEvent e2)
if (reservoirTag == 1)
reservoirTag = 0;
if (wailTag == 1)
wailTag = 0;

I agree. Here's the link: http://aspose.com/file-tools
subject: Signed Applet: NoClassDefFoundError