Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Oracle  announced  that  Java Applet and WebStart functionality, including the Applet API, The Java plug-in, the Java Applet Viewer,JNLP and Java Web Start including the javaws toolare all deprecated in JDK 9 and will be removed in a future release. As an alternative , customers are recommended to use Nexaweb launcher to deploy and  run nexaweb web application. 

This step-by-step guide shows how to perform the migration of Nexaweb application to Nexaweb launcher


Prerequisites:

  1. Nexaweb platform with version 4.5.66 or greater
  2. NexawebLauncher Installer 

Step-by-step guide

To deploy a Nexaweb application using Java Web StartNexaweb Launcher, the recommended approach is using Nexaweb Standalone Client, here are the steps:

Info
  1. Nexaweb Launcher is based on an open source project GetDown. For GetDown project, please refer to: GetDown
  2. For more information on Nexaweb Standalone Client, please refer to: Standalone Client
  1. Create  run.nexaweb file for launching  nexaweb web application.

    The way to nexaweb web application is by using a  run.nexaweb ( nexaweb Launching Protocol) file deployed on the server, when user type the url of a nexaweb file in the browser, the Windows will detect that the response is nexaweb file and it will launch Nexaweb  launcher to load the Web Start application according to the setting in the nexaweb file. So a nexaweb file needs to be created for the Nexaweb application.

    1. Download the latest version nexaweb platform( greater than 4.5.65.0009) and installed it on the Server
    2. Create a new Nexaweb application project with the 4.5.65.0999 or the later version platform
    3. copy NexawebImages.jar,  NexawebStandaloneClient.jar,  and all other jars to WebContent directory as below:

...

2. Digest the jars and create digest.txt and digest2.txt and upload them to the nexaweb application

    a.  Check out digester jar from the SVN: https://svn.nexaweb.com/svn/NXGETDOWN/trunk/getDown/target/getdownDown load digesters jar: getdown-1.7.1-SNAPSHOT.jarjar  from nexaweb download site

    b. Create a digester directory and copy run.nexaweb at the step #d2 into it and change its name to getdown.txt (Note: please check if the file extension is .txt after change the name )

...

           d. Run the command below in command linelines below:

            1  cd D:\target

            2.  java -classpath getdown-1.7.1-SNAPSHOT.jar com.threerings.getdown.tools.Digester digesters

            Note: "D:\target" is the directory where getdown-1.7.1-SNAPSHOT.jar is put in and "digesters" is the directory to be digested in the above command


             and it creates two digest files as the screenshot below: 

...

            f. Restart the nexaweb project and all the setting needed for nexaweb launcher are done .

            Note: whenever the jar files are changed, they need to be re-digested 

3. Install the nexaweb launcher on the client machine and Launch the nexaweb web application

 a. Check out the installer from the SVN: https://svn.nexaweb.com/svn/NXGETDOWN/trunk/installer/install.exeDownload NexawebLauncherInstall.exe from nexaweb download site
 b. Install the nexaweb launcher to the client machine
 c. open the URL http://localhost:8080/nxRunNexaweb/runNexaweb , and save it as run.nexaweb
 d. Double click run.nexweb to launch nexaweb web application        

...