• Post Reply Bookmark Topic Watch Topic
  • New Topic

kindly solve it  RSS feed

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have made following porgram
but arun time error occired
teel me the solution of it





D:\java progs\day3>javac multi3.java

D:\java progs\day3>java muti3
Exception in thread "main" java.lang.NoClassDefFoundError: muti3

D:\java progs\day3>javac multi3.java

D:\java progs\day3>java muti3
Exception in thread "main" java.lang.NoClassDefFoundError: muti3
[ December 11, 2008: Message edited by: Paul Sturrock ]
 
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
satwant, you will probably get better help and more quickly if you read this .

Since this is not a Servlet question, I'll move it to a more appropriate forum.
 
Ranch Hand
Posts: 326
Android Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've cut and pasted your code and I get no compile error or runtime error.
 
Marshal
Posts: 56608
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Beginner's. You can find details of that Exception here. There is no class of the name you have called. Read what you have written on screen very very carefully and the error should become obvious.

By the way: don't put so much code in the main method. Don't simply catch Exception; in fact there is no Exception-throwing code in what you quoted. And you aren't using the import at all. You ought to use the .length parameter in for loops when traversing arrays.
 
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

D:\java progs\day3>javac multi3.java
D:\java progs\day3>java muti3
Exception in thread "main" java.lang.NoClassDefFoundError: muti3


I seem to have missed something but you compile multi3 and you run muti3.
[ December 11, 2008: Message edited by: Sridhar Santhanakrishnan ]
 
Campbell Ritchie
Marshal
Posts: 56608
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sridhar Santhanakrishnan:
I seem to have missed something . . .


You haven't missed anything.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!