• Post Reply Bookmark Topic Watch Topic
  • New Topic

Could not understand how to make Java Web Start applications. Head First Java 2nd Edition  RSS feed

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am a beginner in Java who came across the chapter in Head First Java about making Web Start Apps. I understood the basic idea that it is a way to deploy your apps over the internet. It can be stored on your server. A link to your server can be provided on a web page. When user clicks a link on your web page, a .jnlp file is sent to him, which is opened by the client's browser using a Web Start Helper app. On opening the .jnlp file, the browser, requests the JAR file from the server and runs the main() method of the Main-Class. Information about the Main-Class that contains the main() method is provided in the .jnlp file. Once, downloaded to the clients system, it can be run like any standalone app can, with an exception that it has restricted access to the client machine's hard drive.

Am I wrong in the understanding that I have of Web Start apps above?

What I did not understand:

1) How to make .jnlp files?
2) What exactly are Web Start Helper apps? Can we make them easily? Are there standard Helper apps out there that we can download and install for free? What are a few examples/names of such Helper apps out there on the Web?
3)How do I know whether my browser already has a Web Start Helper app installed?
4)If I want to try/test my own Web Start app, on my own machine,using 127.0.0.1, do I need to have software such as XAMPP installed to make my machine behave like a server or are there other means?
5) Can some one please give me a link that gives a "head-first" like explanation about Web Start i.e any tutorial that is easy to understand / not arcane?
6) Are Web Start apps widely used? Is it sensible for me to invest time in learning it(I feel like it will take quite some effort and time for me to wrap my head around it, given that I have no Web Development background)? Or can I just leave it?
7) What is a mime-type?

Lastly, a humble suggestion to the Head First Java Team:
All the chapters are really well written, but this particular chapter does not provide enough content/explanation to enable the reader to make his own Web Start app after having read the chapter.
 
Bartender
Posts: 3271
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When in doubt a good place to look is the Java tutorials. The one for web start is https://docs.oracle.com/javase/tutorial/deployment/webstart/
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!