Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Could not find or load main class StDemo

 
vishal mishra
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for giving me such a valuable suggestion.I have improved my code.

Now please help me in rectifying this error.

On compiling the file StDemo.Java compiler has generated two files named "Stackk.class" and "StDemo.class"

I have tried to run the program using command "java StDemo" but it is giving this error "Could not find or load main class StDemo".Desktop directory contains file "StDemo.class"

Here is my new code
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You must be facing a similar issue.
 
vishal mishra
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Problem Solved!!!


Thanks a lot !!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic