GitHub - johncf/java-play2
source link: https://github.com/johncf/java-play2
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Java Playground
A web-based Java compiler frontend to play with single-source console programs. UI Demo
Requirements
- Python 3.4+
- Flask
- Flask-SocketIO
- A modern browser
- Supporting
localStorage
,history.replaceState
,const
,box-sizing
,flex
- Supposedly Firefox 29+, Chrome 29+, Edge, Safari 9+, IE 11, Opera 17+
- Supporting
javac
andjava
inPATH
when executing server (example batch file which does this).
Motivation
This was developed to provide an easy-to-use UI for students learning programming for the first time, due to a complete lack of user-friendly, lightweight and bug-free IDE for Java.
As such, this is intended to be run and used locally, since its performance won't scale well to more than a handful of users, and more importantly, it is very insecure for the open web (for starters, program execution is not sandboxed).
Acknowledgements
Code from the following projects are included in this repository:
Building a Frozen Executable
-
Install all dependencies
python -m pip install flask flask-socketio
-
Install
cx-Freeze
v6.0python -m pip install cx-Freeze==6.0b1
-
Run build script
python setup.py build
You can find similarly built binaries here.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK