Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Need Help Getting Auto Grader Working For Class
Need Help Getting Auto Grader Working For Class [message #1741421] Wed, 24 August 2016 23:41 Go to next message
Ian Brobin is currently offline Ian BrobinFriend
Messages: 1
Registered: August 2016
Junior Member
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?
Re: Need Help Getting Auto Grader Working For Class [message #1741536 is a reply to message #1741421] Thu, 25 August 2016 16:52 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Hint: check what is "HW00"? But mind you that people reading this forum will not solve your homework for you Smile
Previous Topic:'Building workspace' has encountered a problem.
Next Topic:Eclipselink / MySQL / UTF-8 Issues
Goto Forum:
  


Current Time: Wed Oct 16 01:31:26 GMT 2024

Powered by FUDForum. Page generated in 0.03281 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top