Before starting, make sure you have:
Create a new NetBeans project (Ant Application) named:
Bushscript
Copy the Java file from:
https://github.com/OpenBushate/bushscript/blob/main/script/Bushscript.java
Paste the file into your NetBeans project.
Run the program through NetBeans. The browser should open automatically.
You can create a Windows batch file to launch the program without opening NetBeans.
java C:\Users\[USERNAME_HERE]\Documents\NetBeansProjects\Bushscript\src\bushscript\Bushscript.java
[USERNAME_HERE] with your Windows username or student email string.For example:
java C:\Users\abrown01\Documents\NetBeansProjects\Bushscript\src\bushscriptBushscript.java
.bat extension, such as:Bushscript.bat
Double-click the .bat file to launch the browser. The program will terminate when the browser is closed.
If the Java file is inside a package folder, include that folder in the path.
For example, if the file is located at:
C:\Users\abrown01\Documents\NetBeansProjects\Bushscript\src\bushscript\Bushscript.java
use:
java C:\Users\abrown01\Documents\NetBeansProjects\Bushscript\src\bushscript\Bushscript.java