This project has two parts:
- compile: A web service that compiles Java code.
- web: A simple one page website that provides a code editor for writing and executing Java code.
- Both projects are JDK 11 based Spring Boot projects and can run both on Windows and Linux.
- compile-0.0.1-SNAPSHOT.jar and web-0.0.1-SNAPSHOT.jar are pre-built versions of the 2 projects mentioned above.
- To rebuild the projects run mvn clean install inside the compile and web folders.
- After running the above command, a folder named target will be generated. There you will have your newly built JAR file.
- Install JDK 11.
- Add JDK 11 to the path.
- Extract java_ide.zip.
- If on windows then place java_ide folder in D drive. (Path: D:\java_ide)
- If on linux then place java_ide folder at root or "/" and grant full privilege, i.e., sudo chmod 777 java_ide.
- There are 2 JAR files in this repository compile-0.0.1-SNAPSHOT.jar and web-0.0.1-SNAPSHOT.jar.
- Open 2 terminal windows in the folder were you have these JARs.
- Run java -jar compile-0.0.1-SNAPSHOT.jar in one terminal and in the other run java -jar web-0.0.1-SNAPSHOT.jar.
- Open browser and visit http://localhost:5600/.
- Sample Java code snippets are provided in snippets.txt for testing purposes.