Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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: 59681
187
  • 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: 59681
187
  • 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!