Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > How fast is an Java Application to a Java Applet.

Reply
Thread Tools

How fast is an Java Application to a Java Applet.

 
 
Sanny
Guest
Posts: n/a
 
      09-16-2007
I have 2 Questions.

1. I have a applet which works slowly. If I turn it into Application.
How fast will it run. Currently it works on JVM. Will it be 10-20
times faster if the Applet is converted into application?

2. Java Applet works on all Browsers. I want all users to run my
Application Will I need to provide J2SE along with my application.

3. How many computers have Java already installed?

Bye
Sanny

 
Reply With Quote
 
 
 
 
Thomas Schodt
Guest
Posts: n/a
 
      09-16-2007
Sanny wrote:
> I have 2 Questions.


Or maybe 3,

> 1. I have a applet which works slowly. If I turn it into Application.
> How fast will it run. Currently it works on JVM. Will it be 10-20
> times faster if the Applet is converted into application?


The overhead is mostly in the browser.
Try launching the applet with appletviewer
to cut out any lag caused by the browser.


> 2. Java Applet works on all Browsers. I want all users to run my
> Application Will I need to provide J2SE along with my application.


Applets work on all Browsers if the host machine has a JRE installed
and the browser has been told where to look for the JRE.


> 3. How many computers have Java already installed?


Google might know.
 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      09-16-2007
Sanny wrote:
...
>1. I have a applet ...


Where? What URL can we see it at?

>..which works slowly. If I turn it into Application.
>How fast will it run.


Not any faster unless you use the -server option for
running it as an application. Using the -server option
might boost the performance by 30-40% (1.3 to 1.4
times faster) if the bytecodes are well suited to
optimisation.

>..Currently it works on JVM. Will it be 10-20
>times faster if the Applet is converted into application?


No.

>2. Java Applet works on all Browsers.


No it doesn't. A good example is Lynx, a browser
for the sight impaired, it does not support anything
but text.

Another example is a very locked down corporate
or otherwise 'group access' (library, internet cafe..)
situation where the providers decided Java was more
trouble than it was worth, and removed or disabled it.

>...I want all users to run my
>Application Will I need to provide J2SE along with my application.


If they can run it in a browser, they should be able to
run it as an application without installing the J2SE.
But then, you will not get this 'magical' speed increase
you are after, not even with native compilation.

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via http://www.javakb.com

 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      09-16-2007
On Sun, 16 Sep 2007 00:07:34 -0700, Sanny <(E-Mail Removed)>
wrote, quoted or indirectly quoted someone who said :

>1. I have a applet which works slowly. If I turn it into Application.
>How fast will it run. Currently it works on JVM. Will it be 10-20
>times faster if the Applet is converted into application?

no. The main difference will be more ram without the browser. See
http://mindprod.com/jgloss/optimisation.html
for ways to spped up your Applet/application.

>
>2. Java Applet works on all Browsers. I want all users to run my
>Application Will I need to provide J2SE along with my application.

You can point them to the URL. See
http://mindprod.com/jgloss/installingjava.html
Unless you distribute on CD there is not much point in including a
JVM.

--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
 
Reply With Quote
 
=?ISO-8859-1?Q?Arne_Vajh=F8j?=
Guest
Posts: n/a
 
      09-16-2007
Sanny wrote:
> 1. I have a applet which works slowly. If I turn it into Application.
> How fast will it run. Currently it works on JVM. Will it be 10-20
> times faster if the Applet is converted into application?


Assuming it is the same Java version, then there should
not be any difference.

> 2. Java Applet works on all Browsers. I want all users to run my
> Application Will I need to provide J2SE along with my application.


Java applets works on all browsers if Java is installed.

Java applications work if Java is installed.

I would think it would be the same unless it is possible to
install inly the browser plugin without installing the full
JRE.

> 3. How many computers have Java already installed?


Millions.

But spanning a lot of versions.

Arne
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
More memory: How fast is fast rfdjr1@optonline.net Computer Support 5 05-19-2004 05:45 PM
Canon S30 Fast shutter mode... Why so fast? mark popp Digital Photography 1 02-08-2004 10:07 PM
I NEED HELP FAST!!!!! REAL FAST!!!!! R. Jizzle MCSE 3 09-29-2003 08:51 PM
Super-fast AA Chargers: Anything as fast as the 15 minute Rayovac? David Chien Digital Photography 4 08-30-2003 07:49 PM



Advertisments