Java Web Start for Java Applications

In NetBeans 6.1, the Run panel of project properties dialog for a standard Java application project has a checkbox titled 'Run with Java Web Start'. If this box is checked, then the ide generates all the necessary artificats (jnlp file) with appropriate entries. The ide also supports testing the configuration by running the app using java web start when the app is run from within the ide (by selecting Run command from the project's context menu). But the ide does not support deploying the app to a web or app server; in fact the ide does not generate war files even. The deployment should be done manually.

Notes:

  • The ide does support generating a war file for NetBeans Rich-Client applications (i.e applications based on NetBeans platform), via the project's 'Build JNLP application' context menu item.
  • In 5.0, the javawebstart module was developed as a proof-of-concept (experimental mode) and made available on the Development Update Center for 5.0 for cutting edge users. This initial version did support deployment of standard java apps as documented in its tutorial. When the module was integrated into NetBeans itself, the module was re-speced and redesigned; at that point the war-file-generation feature was dropped. Starting with NetBeans 5.5, which had the first integrated support for web start, the feature is not available in NetBeans.
  • Consider adding your comments and/or votes to issue 137924
  • The online help for NetBeans 6.1 does clearly say that:
    Enable Web Start. If selected, the IDE creates the necessary artifacts to make the application deployable with Java Web Start when you build the application...
    All of these properties are used in the creation of the JNLP file, which is file used to launch the application...

    But the document doesn't state that deployment should be done manually. This issue is tracked in issue 136069

The following are the manual steps needed to deploy a standard java project application:

  • Enable Java Web Start support in the project properties dialog's run panel.
    • If 'codebase' in the above panel is set to 'Local Execution' : Build the application. The ide generates the required files in the project's 'dist' directory. Copy the entire contents of the dist folder to the appropriate directory in the webserver. For instance, if the context of the app should be '/myjnlpapp' , then do a 'cp -r dist/\* <server-docs-root>/webapps/myjnlpapp'.
    • If 'codebase' in the above panel is set to 'User Defined' : Specify the required context (example: 'http://myjnlpapp'). Build the application. The ide generates the required files in the project's 'dist' directory. Copy the entire contents of the dist folder to the appropriate directory in the webserver. For instance, if the context of the app should be '/myjnlpapp' , then do a 'cp -r dist/\* <server-docs-root>/webapps/myjnlpapp'. (Or generate the war file manually).
    • If 'codebase' in the above panel is set to 'Web Application Deployment' : The ide automatically sets the codebase as "$$codebase'.  Build the project. Follow the steps documented the tutorial at http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/downloadservletguide.html

Comments:

Ican't downloads program Java.
How can I download it?

Posted by somayeh on November 16, 2008 at 01:19 AM PST #

Can you elaborate on your question?

Java itself can be downloaded from:
http://java.sun.com/javase/downloads/?intcmp=1281
(Click the 'download' button next to 'Java SE Development Kit (JDK) 6 Update 10' ). Java Web Start is part of Java SE (JDK).

Posted by Karthikeyan Rajeswaran on November 16, 2008 at 08:56 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

A blog for NetBeans users maintained by NetBeans Support team. For professional support, please check out Support Resources.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today