Lab2 Test suite

16 views
Skip to first unread message

shaghayegh hosseini

unread,
Feb 16, 2012, 1:10:05 PM2/16/12
to proglang-course-2012

hi ,
I am running lab 2 test suite , I am getting this error .I have all
the files (interpereter , type checker ,...) downloaded from
website .

lab2.java:6: class lab3 is public, should be declared in a file named
lab3.java
public class lab3 {
^
1 error
make: *** [lab2] Error 1

David García Sánchez

unread,
Feb 16, 2012, 1:25:46 PM2/16/12
to proglang-c...@googlegroups.com
Hi!

That's a typo in your main java file "lab2.java". Inside it you'll see that the public class declared is "public class lab3" instead of "public class lab2". Changing that you'll solve that error.

Regards.

--
David García Sánchez
MSc Student, Computer Science
ARCO Research Group (Computer Architecture and Networks)
School of Computer Science, ESI.
UCLM, University of Castilla-La Mancha
Ciudad Real
Spain

shaghayegh hosseini

unread,
Feb 17, 2012, 5:36:05 AM2/17/12
to proglang-course-2012
thanks , for help but now I have another problem
lab2.java:18: cannot access TypeChecker
bad class file: ./TypeChecker.java
file does not contain class TypeChecker
Please remove or make sure it appears in the correct subdirectory of
the classpath.
new TypeChecker().typecheck(parse_tree);

André Laszlo

unread,
Feb 17, 2012, 9:02:55 AM2/17/12
to proglang-c...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages