webstartappinstruction.pdf

Upload: herberthfigueroa

Post on 07-Jul-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/18/2019 WebStartAppInstruction.pdf

    1/6

    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.

  • 8/18/2019 WebStartAppInstruction.pdf

    2/6

     

    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

  • 8/18/2019 WebStartAppInstruction.pdf

    3/6

     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

  • 8/18/2019 WebStartAppInstruction.pdf

    4/6

      Test page for launching the application via JNLP

    Launch the application

    You probably don’t have to mess with this. If you feel adventurous, you can play with thehtml 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 pagehttp://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

  • 8/18/2019 WebStartAppInstruction.pdf

    5/6

     

    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.

  • 8/18/2019 WebStartAppInstruction.pdf

    6/6