Test more than one java class

Test more than one java class

de către sc kaindorf-
Număr de răspunsuri: 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

Ca răspuns la sc kaindorf

Re: Test more than one java class

de către 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.

Ca răspuns la Richard Lobb

Re: Test more than one java class

de către 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.
Ca răspuns la Richard Lobb

Re: Test more than one java class

de către sc kaindorf-
Is there some kind of documentation for addional files in coderunner.

Ca răspuns la Richard Lobb

Re: Test more than one java class

de către 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!

Etichete: