This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

not able to run my first java program

dhruv garg

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

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

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

kindly help me out
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3151

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:
subject: not able to run my first java program
jQuery in Action, 3rd edition