Solved

Applet vs. Application

Posted on 2001-06-15
5
186 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

729 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