@@ -0,0 +1,1903 @@
+package edu.unc.vaclab.warapp;%0A%0Aimport com.teamdev.jxbrowser.chromium.Browser;%0Aimport com.teamdev.jxbrowser.chromium.swing.BrowserView;%0A%0Aimport javax.swing.*;%0Aimport java.awt.*;%0Aimport java.awt.event.WindowAdapter;%0Aimport java.awt.event.WindowEvent;%0A%0A/**%0A * Created by gotz on 6/2/17.%0A */%0Apublic class WarApp %7B%0A    public static void main(String%5B%5D _args) %7B%0A        String _war = %22Sample.war%22;%0A        int _port = 18779;%0A%0A        // Launch the web app using an embedded version of Tomcat%0A        Process _p = null;%0A        try %7B%0A            _p = Runtime.getRuntime().exec(%22java -jar lib/webapp-runner-8.5.15.0.jar --port %22+String.valueOf(_port)+%22 war/%22+_war);%0A        %7D%0A        catch (Exception e)%7B%0A            if (_p != null) %7B%0A                _p.destroyForcibly();%0A            %7D%0A            System.out.println(e.getMessage());%0A        %7D%0A%0A        // Create the browser.%0A        Browser _browser = new Browser();%0A        BrowserView _view = new BrowserView(_browser);%0A%0A        // Put the browser into a JFrame%0A        JFrame _frame = new JFrame();%0A        _frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);%0A        _frame.add(_view, BorderLayout.CENTER);%0A        _frame.setSize(1200,800);%0A%0A        // Set up a listener to kill the web server when the user closes the window.%0A        _frame.addWindowListener(new WindowAdapter() %7B%0A            private Process process = null;%0A            @Override%0A            public void windowClosing(WindowEvent _e) %7B%0A                if (process != null) %7B%0A                    process.destroyForcibly();%0A                %7D%0A            %7D%0A%0A            private WindowAdapter init(Process _p) %7B%0A                process = _p;%0A                return this;%0A            %7D%0A        %7D.init(_p));%0A%0A        // Point the browser to the server and display the JFrame.%0A        _browser.loadURL(%22http://localhost:%22+String.valueOf(_port)+%22/%22);%0A        _frame.setVisible(true);%0A    %7D%0A%7D%0A

Create WarApp.java