Solved

Applet vs. Application

Posted on 2001-06-15
5
184 Views
Last Modified: 2013-11-23
Is there an easy way to distribute java applications to client computers or do I have to load the .class files on each machine?  If this is the case, are there any good reasons not to use an applet instead of an application?  If I use signed applets, am I going to run into any major problems writing an intranet database applet that uses stored procedures for the database updates?

Obviously, I am new to Java so any help would be appreciated.
0
Comment
Question by:rossc
5 Comments
 
LVL 3

Accepted Solution

by:
superschlonz earned 50 total points
ID: 6196890
The only problem is that you have to install the public key on every machine
where you want that the applet runs correctly.

Another way is to use a Servlet or a rmi server on the webserver and
communcate only via this middle tier. Then you don't need to sign the
applet.

Java Web Start is also a possible way to do it. It downloads the classes only
if they changed ( http://java.sun.com/products/javawebstart/ ).
0
 
LVL 2

Expert Comment

by:venkat2000120699
ID: 6197139
Have a look at the following question at experts-exchange.

http://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20134997
0
 

Expert Comment

by:rameshnut
ID: 6197605
Hi Rossc

You have asked a very very basic question pertaining to the PHILOSOPY of java programming.
The entire effort of the java developers has been to make it portable to as many operating platforms as possible.In this pursuit, the created a file format...what we call the 'class' files.
These are the files that are supposed to run on any platform having the appropriate JVM.(I mean you could compile a class file on a mac OS and run the same class fine under a Windows platform,with an appropriate JVM.)

Thus the minimum we can do is to distribute them inorder to run them.

Well applets always have limited capabilites than their application peers.
Regarding the signing of applets,that 's in itself a major problem and commercially signing applets is a costly affair mind you!! (besides the technical difficulty involved in installing them onto the client machines!!)

ramesh

0
 
LVL 3

Expert Comment

by:Sendoh
ID: 6200913
hi !
u can try zipp all the java application to a jar files...
the distribute it to the client machine....
think this would be the simplest way...:)

hope it helps...
0
 

Author Comment

by:rossc
ID: 6212406
Java WebStart is the solution I was looking for.  This is a really nice way to distribute applications on an intranet.

Thanks for the help.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question