Need Help Getting Auto Grader Working For Class [message #1741421] |
Wed, 24 August 2016 19:41  |
Eclipse User |
|
|
|
I have an auto-grader I need working for my class, but I am unable to do it.
I have a project with this folder hierarchy:
\HW00
---|.. Grade.class
---|.. Grade.java
---+-- \AutoGrader
------|.. auto_input.txt
------|.. auto_key.txt
------|.. Testor.class
------|.. Testor$Scorer.class
I am told by my instructor that when I run the Grade application it should create an output file called "auto_output.txt". Instead I get the error:
Error: Could not find or load main class HW00.Grade
I think it has something to do with eclipse not recognizing Grade.java as a java file and not being able to access the .class files.
The code in the Grade.java file is(written by my instructor):
// Local packages
import AutoGrader.Testor;
public class Grade
{
public static void main(String[] args) throws Exception
{
Testor testor;
if (args.length > 0)
testor = new Testor(args[0]);
else
testor = new Testor();
testor.run();
testor.grade();
}
}
Could someone help me with this my errors?
|
|
|
|
Powered by
FUDForum. Page generated in 0.02922 seconds