Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: on demand loading



well why does this not work?
why on earth is this so hard?
its been a whole week just trying to get a simple background jpeg to show because i refuse to put it in the jar.
if im not making a stupid mistake somewhere then Java has to be the worst language ever written.
tell me...if my applet is in a jar thats in the root folder (the same with the html) but 4 levels deep in a package (starting with "com"), where does getCodeBase() put me?
do i have to put my media files that are unjar'ed 4 levels deep also?
and if the media files were in the root folder, would ../../../../ media.jpg work then?


thanks for all ur replies so far, really. but i cant celebrate yet:-)

Adrian


On Wednesday14,Nov 2007, at 8:38 AM, Joshua Smith wrote:


If I'm wrong about this, there should be evidence of lazy loading
accomplished with the applet tag's archive attribute somewhere.
Unfortunately, using keywords like lazy or deferred or on demand yielded no
useful hits. If someone else has a reference, please share it.

In my years of testing on many browsers, O/S's, and Java's, I have NEVER seen a Java that uses eager loading. Documented or not, they ALL lazy load.


The question of multiple jars separated by commas is a different issue
entirely. The examples I found in several references show commas and
spaces, but only SAY commas. So I think maybe try commas and spaces.

Use commas, not spaces. This will work everywhere.

-Joshua


_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: on demand loading (From: Greg Guerin <email@hidden>)
 >Re: on demand loading (From: Joshua Smith <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.