Once you make a graphical Java application, you'll want to show it off to the world
! Luckily for us, Netbeans does most of the hard work for us. Be thankful.
How to Make Java Web Start Application Using Netbeans. Once you make a graphical Java application, you’ll want to show it off to the world! Luckily for us, Netbeans does most of the hard work for us. Be thankful. Step 1: Make your project ready for Web Application Deployment. •
Click Project Properties under the File menu.
Go to Application>Web Start and click the “Enable Web Start” check box and select “Web Application Deployment” from the drop down menu.
Step 2: Make your .jar file • Click Run> Build Main Project and create a jar file.
Step 3: Edit your distribution files Go to your project/dist
Edit your launch.jnlp to look similar to this: MyGUI Adam English MyGUIapp Test to show students You want to edit everything that’s highlighted in yellow to your web path, your information, your .jar and your Main. Edit your launch.html to look similar to this: Test page for launching the application via JNLP
Test page for launching the application via JNLP Launch the application
var url="http://[fill in your URL]/launch.jnlp" deployJava.createWebStartLaunchButton(url, "1.6") --> You probably don’t have to mess with this. If you feel adventurous, you can play with the html of your web page. Step 4: Setting up your web page. For those of you who do not have a web page, the University offers everyone a web page FOR FREE! Here is some information on your H: drive and your web page http://www.labs.uncc.edu/basics/novell.html#netstorage You will want to use https://webf.uncc.edu to access your H drive remotely if you’re not on campus. Now add everything in your dist file into public_html on your H: drive
Once you add your files you can go to your launch.html page and run your Java Web Start Application! Note: you may have to save the launch.jnlp to your hard drive to run it if your browser takes you directly to the launch.jnlp xml.