Test more than one java class

Test more than one java class

por sc kaindorf -
Número de respuestas: 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

En respuesta a sc kaindorf

Re: Test more than one java class

por 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.

En respuesta a Richard Lobb

Re: Test more than one java class

por 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.
En respuesta a Richard Lobb

Re: Test more than one java class

por 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!

Marcas: