I am trying to get Kotlin to work with DOMJudge, but I am having issues. I installed Kotlin in both the host OS and CHROOT. I am able to run kotlin commands in the Host OS and in CHROOT, I'm also able to run kotlin commands using the full path to where I unzipped it in the execution script.
I am submitting the test hello world to the example Hello World challenge.
I am getting the following error:
Compiling failed with exitcode 1, compiler output: Info: using main class provided by ENTRY_POINT='Test_helloKt'. error: invalid argument: -d info: use -help for more information
I believe this is referencing kotlinc -d as that's the only place I can see -d in the execution script. But, I am fully able to run kotlinc -d in the terminal.
Version: DOMJuge 6.0.3 OS: Ubuntu 18.04 on AWS Apache2
Hi Alan,
First off, I'm no expert with Kotlin nor the JVM, so maybe someone else can shed more light on this.
On 06/03/2019 05:47, Alan wrote:
I am trying to get Kotlin to work with DOMJudge, but I am having issues. I installed Kotlin in both the host OS and CHROOT. I am able to run kotlin commands in the Host OS and in CHROOT, I'm also able to run kotlin commands using the full path to where I unzipped it in the execution script.
I am submitting the test hello world to the example Hello World challenge.
I am getting the following error:
Compiling failed with exitcode 1, compiler output: Info: using main class provided by ENTRY_POINT='Test_helloKt'. error: invalid argument: -d info: use -help for more information
I believe this is referencing kotlinc -d as that's the only place I can see -d in the execution script. But, I am fully able to run kotlinc -d in the terminal.
Do you have multiple versions of Kotlin installed and does one maybe support the option but another not?
You could try removing the "-d ." from the compile script and see if it works then.
As a last resort debug option, you could add lines:
kotlinc -version kotlinc -help
to the script to see what version of kotlin is called and which options it does support.
Best, Jaap
Version: DOMJuge 6.0.3 OS: Ubuntu 18.04 on AWS Apache2 -- Alan S.
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel