Its important to understand the different flavors of java so yo uknow yo uare learning the right stuff. Allthough the basic language syntax remains the same, the facilities available change a lot between all of the following:
Java 1.1 APPLETS
Pros: embed directly in the web page. All browsers come equipepd to deal with them.
Cons:
Must be programmed in Java1.1 (a very old dialect). Applets have seriosu limits on what they can do for security reasons. These limits can be gotten aroudn with “signed” applets but this takes a certificate from a certificate provider like Verisign and the cost isn’t insignificant.
Java 2 APPLETS
Pros:
Can use a modern dialect of Java (the latest if you want.)
Cons:
The same security restrictions as JDk1.1 Applets. Requries you deploy with Java PlugIn. User must either have already installed a mosern JRE or you need to make them download and install one. (JREs are kidna big currently though not as big as the JDK.)
Cell Phone CLDC/MIDP1.0 “Midlets”
Pros:
Highly available platform. Lots of commerical activity in this space.
Cons:
CLDC/MIDP1.0 is even more limited and primative then JDk1.1 Some cell phones have very serious size limitations on Midlets. Distribution is 100% controlled by the cell phone dialtone providers. They generally will only talk to major publishers so you will need to go through one of them.
Java Webstart Applications
Pros:
Can use the latest version of Java. Can be launched either from a web page or outside of the browser. Caches code on the suer’s side and manages updates for you reducing or eliminating subsequent download times after the first use. Much less limited security model then Applets. Can gain full system on user approval access without an expensive certificate.
Cons:
Can’t embed in the HTML page (they klaunch in their own frame.) Requries user have insatlled a recent JRE or that you make the user download and install one. JNLP files (what describes your program to Webstart) are not the most obviosu things in the world to figure out. To make really easy for all users requires that you have control over the web server or that someone who does installs the JNLP mine-type.
Full Applications on CD-ROM
Pros:
Can chose any JDK version you want and install it. Can use any extensions you want and install them as well.
Cons:
Cant web deploy except the way you deploy traditional apps (web installers and the like.)