This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Could not find or load main class StDemo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Could not find or load main class StDemo" Watch "Could not find or load main class StDemo" New topic
Author

Could not find or load main class StDemo

vishal mishra
Ranch Hand

Joined: Jul 12, 2010
Posts: 103
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

Joined: Sep 08, 2007
Posts: 3119
    
  33

You must be facing a similar issue.


Mohamed Sanaulla | My Blog
vishal mishra
Ranch Hand

Joined: Jul 12, 2010
Posts: 103

Problem Solved!!!


Thanks a lot !!!
 
 
subject: Could not find or load main class StDemo