Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
    Bookmark Topic Watch Topic
  • New Topic

not able to run my first java program

 
dhruv garg
Greenhorn
Posts: 7
Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please CarefullyChooseOneForum and dont post the same query in multiple places. Lets continue this discussion here
 
    Bookmark Topic Watch Topic
  • New Topic