java - Getting error 'test.Test class wasn't found in Test project' -



java - Getting error 'test.Test class wasn't found in Test project' -

so i'm watching stanford's lectures on programming methodology , professor has code

import acm.graphics.*; import acm.program.*; public class helloprogram extends graphicsprogram { public void run() { add( new glabel("hello world", 100, 75) ); } }

and far can tell thing necessary run have acm.jar file loaded in library.

the difference between wen runs script , when run mine 1) phone call java file test , test extends graphicsprogram, , 2) i'm using netbeans while uses eclipse. yet when run this, window pops reading, test.test class wasn't found in test project. asks me select main class, in options says <no main classes found>.

i find confusing couple reasons: 1 code works on machine, why not mine? had code working couple of days ago, , of sudden it's not, , have no thought changed.

here code:

import acm.graphics.*; import acm.program.*; public class test extends graphicsprogram { public void run() { add( new glabel("hello world", 100, 75) ); } }

java netbeans acm-java-libraries

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -