I don't teach Java myself and I thought someone who did might pipe up instead. But in their absence ...
I think you would need to construct a Java question type that is scripted in Python. It could build the appropriate package file structure, copy relevant files into place, then compile and run the code. This old thread includes a demo question type that could probably be adapted to your needs. See in particular the posting by Peter Sander on Tuesday, 26 July 2016, 8:20 AM.
I think you would need to construct a Java question type that is scripted in Python. It could build the appropriate package file structure, copy relevant files into place, then compile and run the code. This old thread includes a demo question type that could probably be adapted to your needs. See in particular the posting by Peter Sander on Tuesday, 26 July 2016, 8:20 AM.