File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why this program does not run !!!! your kind help !!

 
Ammar Salem
Ranch Hand
Posts: 60
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i have been trying to run this program code but the error ""Exception in thread "main" java.lang.NoClassDefFoundError:FuncCal""
and here is the code:

class FuncCall {

public static void funct1 () {
System.out.println ("Inside funct1");
}

public static void main (String[] args) {
int val;

System.out.println ("Inside main");

funct1();

System.out.println ("About to call funct2");

val = funct2(8);

System.out.println ("funct2 returned a value of " + val);

System.out.println ("About to call funct2 again");

val = funct2(-3);

System.out.println ("funct2 returned a value of " + val);
}

public static int funct2 (int param) {
System.out.println ("Inside funct2 with param " + param);
return param * 2;
}
}

with respect,
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ammar Salem:
"Exception in thread "main" java.lang.NoClassDefFoundError:FuncCal"

You have a typo. It's FuncCall -- not FuncCal.
 
Ammar Salem
Ranch Hand
Posts: 60
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, that really worked, i didn't really notice !!
thank you again Marc
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic