Webbased Program Compilation on Moodle ITEC 810 Project
Web-based Program Compilation on Moodle ITEC 810 Project Presentation Kartik Modi (41563638) Supervisor Matt Bower 9/5/2021 1
The Problem �To allow students to compile and execute Java programs online �Most of the new students find difficulties in configuring their system for Java program compilation. �The compilation errors are hard to analyze �Evaluating each Java program manually is major problem for teachers. �Need of system that allow Java program compilation anywhere, anytime. �Universities require easy and simple user interface. 9/5/2021 2
The Solution �Development of Java. Online plug-in for Moodle Learning Management System �Easy and simple Moodle (web) based User Interface for Java program compilation and execution �Server side Program compilation �Students do not have to configure anything on their system �Generate simple diagnostics on compilation and execution error �Easy for teachers to collect and evaluate Java programs �Compile and execute Java program anywhere, anytime 9/5/2021 3
Demonstration �Create new Java. Online question using Teachers view �Generate new quiz for students �Login as student �Answer Java. Online question �Write simple Java program �Generate Compilation Error �Generate Execution Error �Submit Java Program �Return back to Teachers view 9/5/2021 4
Technology Used �Moodle Learning Management System �Moodle is a modular, open source system and as such allows universities to customize the Moodle server for their usage �Java. Online plug-in �New Moodle Java. Online question type plug-in provides the facility to compile Java programs online. �The plug-in is developed considering security aspects and runs independently from the Moodle server. �PHP/Java Bridge �It provides communication link between Moodle and Java. Online plug-in 9/5/2021 5
Development �Moodle core libraries and PHP (User Interface) �User Interface of Java. Online plug-in �Storing questions and answers �Session creation for each attempt �Java SE 6 (Java server) �Validation and Compilation of Java programs �Generating diagnostics on error �Execution of Java programs �PHP/Java Bridge �Message passing between User interface and Java server. 9/5/2021 6
Java. Online User Interface Write Java Program Provide Web server Details Server Not Found error Initiate PHP/Java Bridge Provide Storage Path Details Communication Failed error Initiate Compiler. Bean Class Provide Compiler Bean Class not initialized 9/5/2021 error Initiate Compile. Me Class Java. Onlien Compiler 7
Java. Online Server Interface Receive Compiler. Bean Retrieve data from bean Permission denied error Create File System Return file path Compilation Error error Compile Java Program Provide. class file Execution Error error 9/5/2021 error Execute Java Program Return to Java. Online UI 8
Justification of Approach �Problems with exec() approach �Compilation problems �Security problems �Unexpected error �Java SE 6 API approach �Do not need of configuring platform �Reduce overhead of starting JVM (Java virtual machine) �Better exception and error handling 9/5/2021 9
Security �User access rights �File system Management �Security of Web server �Multiuser Environment (deadloack) �Policy files on server 9/5/2021 10
Conclusion �Java. Online plug-in provide s online compilation on the Moodle LMS. �Plug-in enable students to compile their programs without having to configuring their machine for Java program compilation. �It also generates detailed statistics of student’s compilations that can help teachers to improve their teaching methodologies. �The Java. Online plug-in uses secure and robust approach to online Java compilation. 9/5/2021 11
THANKS 9/5/2021 12
- Slides: 12