Re: [Java-gnome-developer] Executing examples
Brought to you by:
afcowie
From: Rishabh M. <rma...@gm...> - 2004-10-11 23:55:07
|
On Tue, 12 Oct 2004 01:11:45 +0200, Hurlin Cl=E9ment <sm...@in...> wrote= : > On Monday 11 October 2004 23:42, Rishabh Manocha wrote: > Then it seems to works because i can compile without -classpath flag yet > execution still fails :O\ >=20 > smelc$ javac First.java > smelc$ java First > Exception in thread "main" java.lang.NoClassDefFoundError: First This might be a stupid question but are you sure you have a Main method in the program?? Is it in the correct format(public static void main(String[] args) ??). You can also check if you have a package decleration at the top of the file indicatiing a path. That can cause problems too. --Rishabh |