Is it possible to implement java code within moodle editor?

Is it possible to implement java code within moodle editor?

by vaibhav shukla -
Number of replies: 4

I am new to moodle.I am developing java course module in moodle.I want to add feature of java program editor in my course module where user 


can write java code on moodle editor and press submit button to see result/output of program.When submit is pressed,output  or compilation 


error could be displayed.(similar to try it online on w3schools.com) 


  In this context,I had made research on java related plugins in moodle.I found useful plugins,two of them are:


1)Javaunittest-It is a question type,which uses junit test framwork for checking output.


  I was able to execute partially.It shows following error:


  Junit Test File error:test class is missing.




2)Java Online plugin :   It is implemented using PHP/Javabridge which provides communication channel between Moodle and    Java web server.

   It shows following error:

   Plugin "qtype_myjavaonlineentifier" is defective or outdated, can not continue, sorry.

   Plugin is not compatible with moodle 2.0 or later. 

Error code: detectedbrokenplugin

Stack trace:

line 431 of \lib\upgradelib.php: plugin_defective_exception thrown

line 1586 of \lib\upgradelib.php: call to upgrade_plugins()

line 386 of \admin\index.php: call to upgrade_noncore()

Is their any other approach or a way around to compile,execute the java code on moodle editor?


Thank you,

vaibhav

Average of ratings: -
In reply to vaibhav shukla

Re: Is it possible to implement java code within moodle editor?

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

The full solution is this thing

http://vpl.dis.ulpgc.es/

But it is quite complex.

Average of ratings: Useful (1)
In reply to Marcus Green

Re: Is it possible to implement java code within moodle editor?

by vaibhav shukla -

Hey Marcus,thank you very much!

I will try it and revert back to you for further help if needed.

In reply to Marcus Green

Re: Is it possible to implement java code within moodle editor?

by vaibhav shukla -

Is there any way to install vpl-jail-system(execution system) on windows?

In reply to vaibhav shukla

Re: Is it possible to implement java code within moodle editor?

by asma albarakati -

please, I am interested in creating a course that teaching java also, did you made it ??