• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error  RSS feed

 
Red Rose
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Team,



I am getting compilation success if i am compiling any java program by using command prompt but while running it shows report like "could not find or load class" . Kindly help me
 
Roberto Perillo
Bartender
Posts: 2273
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Champ,

Please look at your private messages for an important administrative message.

Now, what exactly does your question has to do with the OCMJD certification? Before posting your question, CarefullyChooseOneForum.

The thing is, it is pretty likely that the dependencies are not in your classpath when you execute your program. Include all the dependencies when you run your program, like this: java -cp <path_do_a_dependency>/dependency.jar.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12563
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
telling us what the error is "like" doesn't help. Programming and computers are EXTREMELY precise in what they do, need, and mean. You have to TellTheDetails if you really expect help. Otherwise, we will be making assumptions and guesses as to what the problem is, which 99% of the time will be wrong.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!