Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Could not find or load main class StDemo  RSS feed

 
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
 
Bartender
Posts: 3185
34
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 !!!
 
Curse your sudden but inevitable betrayal! And this tiny ad too!
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!