BuildABrowser is a project aiming to build a browser and its rendering engine in Java, and then document it such that others can rebuild it for themselves.
Jump to Screenshots | View on YouTube
java -Xms32m
-XX:MaxHeapFreeRatio=10 -XX:MinHeapFreeRatio=10
-XX:+UnlockExperimentalVMOptions -XX:+UseCompactObjectHeaders
-Djava.net.preferIPv4Stack=true -jar buildabrowser.jar
java -Xms32m
-XX:MaxHeapFreeRatio=10 -XX:MinHeapFreeRatio=10
-Djava.net.preferIPv4Stack=true -jar buildabrowser.jar
By default, BuildABrowser uses Skija for drawing. You can use Java2D by adding the --use-java2d.
Learn more about BuildABrowser. Initialize your repository.
Open a window with text loaded from a file or server, using a URL passed via the command-line.
Get a feel for the browser DOM, creating a basic tree that will suffice for some basic HTML parsing.
Learn how an HTML parser uses a state machine to convert HTML to a DOM.