## Question Authors' Forum

### Test more than one java class

by sc kaindorf -
Number of replies: 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

### Re: Test more than one java class

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

### Re: Test more than one java class

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

### Re: Test more than one java class

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

### Re: Test more than one java class

by 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:

by sc kaindorf -