473,402 Members | 2,072 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Help with Multi Jar Files

Hi,
I need some advise with a java applet. I am nearing completing of the
project and am getting a little concerned how long it is taking for the
applet to load. I have developed the java applet with Jbuilder using the
JDK 1.1.8 as I need to support users with that haven't installed the latest
version of the Java Runtime.

So I have been searching the internet trying to see how to speed up the
loading process. I've notice that some applets on the web have a loader,
that displays a nice background image and shows a progress bar of the jar
files downloading. These applets aren't using the Java 1.4 parameters to
display a background.

So I've been trying to achieve this, but for the life of me I can't find any
examples of how to do this!!! Which is very frustrating as I know it's
possible.
Whilst on my search I noticed a few people talking about preloaders, where
the jar files are downloaded on a previous page showing a progress bar.
Then once all the files have been download it redirects the user to the page
with the applet.

So the question is, does anybody have any examples for either of the two
options?

Many thanks

Wayne
Jan 13 '06 #1
7 5015
An additional suggestion: you could shrink the jar using a tool such as
ProGuard (http://proguard.sourceforge.net/)

www.mammothsoftware.com, Mike
"Build Swing Applications in 5 Minutes"

"Wayne Gibson" <wa**********@rendersoft.com> wrote in message
news:dq*******************@news.demon.co.uk...
Hi,
I need some advise with a java applet. I am nearing completing of the
project and am getting a little concerned how long it is taking for the
applet to load. I have developed the java applet with Jbuilder using the
JDK 1.1.8 as I need to support users with that haven't installed the
latest version of the Java Runtime.

So I have been searching the internet trying to see how to speed up the
loading process. I've notice that some applets on the web have a loader,
that displays a nice background image and shows a progress bar of the jar
files downloading. These applets aren't using the Java 1.4 parameters to
display a background.

So I've been trying to achieve this, but for the life of me I can't find
any examples of how to do this!!! Which is very frustrating as I know it's
possible.
Whilst on my search I noticed a few people talking about preloaders, where
the jar files are downloaded on a previous page showing a progress bar.
Then once all the files have been download it redirects the user to the
page with the applet.

So the question is, does anybody have any examples for either of the two
options?

Many thanks

Wayne

Jan 13 '06 #2
Thanks for the link..
I'm already using an obfuscator which does reduce it slightly..

But really want the user to be sitting there waiting for it load, so feed
back is the solution...

Any other ideas?
Jan 13 '06 #3
Wayne Gibson wrote:
Hi,
I need some advise with a java applet. I am nearing completing of the
project and am getting a little concerned how long it is taking for the
applet to load. I have developed the java applet with Jbuilder using the
JDK 1.1.8 as I need to support users with that haven't installed the latest
version of the Java Runtime.

So I have been searching the internet trying to see how to speed up the
loading process. I've notice that some applets on the web have a loader,
that displays a nice background image and shows a progress bar of the jar
files downloading. These applets aren't using the Java 1.4 parameters to
display a background.

So I've been trying to achieve this, but for the life of me I can't find any
examples of how to do this!!! Which is very frustrating as I know it's
possible.
Whilst on my search I noticed a few people talking about preloaders, where
the jar files are downloaded on a previous page showing a progress bar.
Then once all the files have been download it redirects the user to the page
with the applet.

So the question is, does anybody have any examples for either of the two
options?

Many thanks

Wayne

Maybe this will help

'How to Use Progress Bars'
http://java.sun.com/docs/books/tutor.../progress.html

'How to do a fast Splash Screen in Java'
http://www.randelshofer.ch/oop/javas...avasplash.html
--

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________ ________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Jan 13 '06 #4
On Fri, 13 Jan 2006 13:47:33 -0000, "Wayne Gibson"
<wa**********@rendersoft.com> wrote, quoted or indirectly quoted
someone who said :
But really want the user to be sitting there waiting for it load, so feed
back is the solution...


Use Java Web Start. Then you load only once unless the code changes.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Jan 14 '06 #5
Hi,
thanks for the information..

But isn't Java Web Start used for deploying Standalone Java Applications?
I would love to be able to use an installer, but I have to cater for users
that aren't able to install applications on their machines.
So the Jar file is the only option :(

Also I have write it with the Java 1.1 jdk in mind.

Any other Ideas?

Wayne
Jan 17 '06 #6
Thanks for the links,

I've had a quick look at the fast splash screens. The only problem that I
can see is that this is based on an application as opposed to an applet. As
my Applet might be a little large, the splash won't load until the Jar file
has been downloaded.

What I'm looking for is small applet that will display an image and progress
bar. That will then download the real applet updating the progress bar.
Then upon completing the download invoke the real applet.

Any ideas?

Thanks

Wayne
Jan 17 '06 #7
Wayne Gibson wrote:
Hi,
thanks for the information..

But isn't Java Web Start used for deploying Standalone Java Applications?
I would love to be able to use an installer, but I have to cater for users
that aren't able to install applications on their machines.
So the Jar file is the only option :(

Also I have write it with the Java 1.1 jdk in mind.

Any other Ideas?

Wayne

No, actually Java Web Start does support the download of Applets. In
fact it is perfect for your situation. It will present a slash screen
and displays a progress bar while it downloads your applet and then
invokes it.

The only thing not sure about the 1.1 jdk requirement.

*The Applet-Desc Element*
Java Web Start has support for launching Java Applets. This support
provides easy migration of existing code to Java Web Start.

An Applet is launched using the applet-desc element instead of the
application-desc element. For example:

<applet-desc
documentBase="http://..."
name="TimePilot"
main-class="TimePilot.TimePilotApp"
width="527"
height="428">
<param name="key1" value="value1"/>
<param name="key2" value="value2"/>
</applet-desc>

The JAR files that make up the Applet are described using the resources
element as for applications. The documentBase must be provided
explicitly since a JNLP file is not embedded in an HTML page. The rest
of the attributes correspond to the respective HTML applet tag elements.

The main-class attribute is used instead of the code attribute. The
main-class attribute is assigned the name of the Applet class (without
the .class extension). This attribute can be omitted if the Applet
class can be found from the Main-Class manifest entry in the main JAR file.

Note: Applets must be packaged in JAR files in order to work with Java
Web Start.
Look at this
http://java.sun.com/products/javaweb...persguide.html

Also http://mindprod.com/jgloss/javawebstart.html

--

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________ ________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Jan 17 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Dustin | last post by:
I'm looking for a PHP script that supports multi-file upload. However, because my users could potentially be uploading hundreds of files, the existing multi-file upload scripts that people have...
5
by: Garry Hodgson | last post by:
a colleague of mine has seen an odd problem in some code of ours. we initially noticed it on webware, but in distilling a test case it seems to be strictly a python issue. in the real system, it...
0
by: frankenberry | last post by:
I have multi-page tiff files. I need to extract individual frames from the multi-page tiffs and save them as single-page tiffs. 95% of the time I receive multi-page tiffs containing 1 or more black...
9
by: cheryl | last post by:
I am relatively new to programming in Access for a multi user environment, and am having trouble figuring out if there is a way to accomplish one of our user requests. I am working on a multi...
4
by: mimmo | last post by:
Hi! I should convert the accented letters of a string in the correspondent letters not accented. But when I compile with -Wall it give me: warning: multi-character character constant Do the...
4
by: Noa | last post by:
Hi, Is there a way to use OpenFileDialog1 in order to multi-select folders? I saw in msdn site a sample of multi-file-selections. I need to select multiple folders and to apply an algorithm on...
5
by: Shane Story | last post by:
I can seem to get the dimensions of a frame in a multiframe tiff. After selecting activeframe, the Width/Height is still really much larger than the page's actual dimensions. When I split a...
5
by: bobwansink | last post by:
Hi, I'm relatively new to programming and I would like to create a C++ multi user program. It's for a project for school. This means I will have to write a paper about the theory too. Does anyone...
2
by: jjouett | last post by:
I'm trying to setup an ASPX web page to service requests from an existing Java Client that posts multi-part data as a way to upload files, and I can't find a straightforward way to process the...
13
by: Lyon | last post by:
Hi everyone: I have 20 threads and each creats a file in the same directory, respectively. However, because the threads are not synchronized, and only some of the 20 threads creat the file in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.