Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oldratlee/java-compiler-demo
Demo project of creating dynamic applications with javax.tools.JavaCompiler
https://github.com/oldratlee/java-compiler-demo
classloader compiler dynamic-app dynamic-compiler java
Last synced: 10 days ago
JSON representation
Demo project of creating dynamic applications with javax.tools.JavaCompiler
- Host: GitHub
- URL: https://github.com/oldratlee/java-compiler-demo
- Owner: oldratlee
- Created: 2013-03-05T07:48:30.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-10-07T12:46:59.000Z (about 1 month ago)
- Last Synced: 2024-10-19T19:33:31.342Z (18 days ago)
- Topics: classloader, compiler, dynamic-app, dynamic-compiler, java
- Language: Java
- Homepage: https://github.com/oldratlee/java-compiler-demo
- Size: 109 KB
- Stars: 13
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# java compiler demo [![Github Workflow Build Status](https://img.shields.io/github/actions/workflow/status/oldratlee/java-compiler-demo/ci.yaml?branch=master&logo=github&logoColor=white)](https://github.com/oldratlee/java-compiler-demo/actions/workflows/ci.yaml) [![Java support](https://img.shields.io/badge/Java-8+-green?logo=OpenJDK&logoColor=white)](https://openjdk.java.net/)
Creating dynamic applications with java compiler(`javax.tools.JavaCompiler`).
- [`Plotter.java`](src/main/java/examples/plotter/Plotter.java)
- GUI main application.
- [`CharSequenceCompiler.java`](src/main/java/javaxtools/compiler/CharSequenceCompiler.java)
- java compiler encapsulation of `javax.tools.JavaCompiler`.> demo code of article [Create dynamic applications with javax.tools](http://www.ibm.com/developerworks/java/library/j-jcomp/index.html).
> \# simple chinese version: [使用 javax.tools 创建动态应用程序](http://www.ibm.com/developerworks/cn/java/j-jcomp/)## how to run
```bash
./mvnw install exec:java -Dexec.mainClass=examples.plotter.Plotter
```## screenshot
![image](https://user-images.githubusercontent.com/1063891/179347305-7513c8a4-40b6-4518-a4d2-7cd418b635a9.png)