Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Signed Applet: NoClassDefFoundError

 
Payam Mamaani
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Payam Mamaani
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.initFieldCombo(items);

mycom.fieldCombo.addActionListener(new ActionListener()
{
public void actionPerformed ( ActionEvent e2)
{
if (reservoirTag == 1)
{
c.remove(mycom.reservoirCombo);
reservoirTag = 0;
}
if (wailTag == 1)
{
c.remove(mycom.wailCombo);
wailTag = 0;
}
showReservoirCombo();
}
}
);

mycom.addFieldCombo(c);
//show();
validate();
goToReport();
}
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic