*
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 Android Security Essentials Live Lessons this week in the Android 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: 3068
    
  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 !!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Could not find or load main class StDemo
 
Similar Threads
How to make a Tar in java
Name Of file !!!
Have problem in stack ! not able to get the output
Exception in thread "main" java.lang.NoClassDefFoundError: kolos/Main
cannot resolve symbol