File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes not able to run my first java program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

not able to run my first java program

dhruv garg
Greenhorn

Joined: Dec 24, 2011
Posts: 7

my program is able to pass the compilation test.but when i run the program its gives error

"C:\Users\DHRUV\My Documents\java>javac innerclass.java

C:\Users\DHRUV\My Documents\java>java innertest
Error: Could not find or load main class innertest

here the file name is innerclass.java and the main class name is innertest.

kindly help me out
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3054
    
  33

Please CarefullyChooseOneForum and dont post the same query in multiple places. Lets continue this discussion here


Mohamed Sanaulla | My Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: not able to run my first java program
 
Similar Threads
anonymous inner class and interface
Why I'm getting garbage after executing the class file?
Another Error this time while trying to run "cannot find class"?
create this .jar gm.jar. and make it
a simple brainer on inner classes