Test more than one java class

Test more than one java class

von sc kaindorf -
Anzahl Antworten: 6

Hello,

i'm looking for a solution to test more than one java classes in coderunner.

Have anyone a hint for us?

Thanks, sc

Als Antwort auf sc kaindorf

Re: Test more than one java class

von Richard Lobb -

Assuming you're using a reasonably up-to-date CodeRunner version you should be able to configure the question to allow one or more .java attachments. Then students can submit their answers by pasting the main class into the answer box and adding support classes as attachments. The attachments are all loaded into the working directory as separate files.

Als Antwort auf Richard Lobb

Re: Test more than one java class

von sc kaindorf -

Thanks - but, if I try to run the file with the main() I get the following error:

bad source file: ./IQTester.java
    file does not contain class IQTester
    Please remove or make sure it appears in the correct subdirectory of the sourcepath.
./IQTester.java:11: error: cannot find symbol
There are two files (IQTester and IQ) and the IQTester contains the main() Methode.
Als Antwort auf Richard Lobb

Re: Test more than one java class

von sc kaindorf -
Is there some kind of documentation for addional files in coderunner.

Als Antwort auf Richard Lobb

Re: Test more than one java class

von sc kaindorf -
I'm struggling with this error:

[0.513s][warning][os,thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 4k, detached.
[0.602s][warning][os,thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 4k, detached.
  
and I have no idea to fix this problem! Thanks!

Tags: