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



wha??
when did i attack YOU joshua?
accuse me UTFM. not RTFM. ( U = understand)
why attack ME if im already attacking me!

things are not as they seem.
to YOU, i am not reading the documentation.
to ME, i am reading everything i can get my hands on. bought 3 extra books and downloaded countless pages from sun AND 3rd party sites alike.
as i said. maybe im stupid but it seems to me that if it were as simple as reading the manual and since ALL documentation is available to the public, NOONE should need this site.
this site, as i understand it, is for the stupid ones who, after reading the manual, still pull their hair out.
ME.


now...lets start over.
what im about to say is based on the difference ive read in TFM and what uve said.
so if im wrong, as i usually am with java, please clarify.
getCodeBase() and getDocumentBase() is not the same thing. ur applet could be on an entirely different server.
plus, it just doesnt make sense that sun would have 2 doing the same thing.


as i understand, the classes are not just NAMED that way. they EXIST in directories that way.
if the jar is extracted on the client side then IMHO, the applet would exist 4 levels deep and would be represented as such by a call to getCodeBase().
i really dont care which it is. i just want to know whats happening so i can get it to work because THAT part is NOT in the FM.
look for urself and put urself in the position of someone who wants a clear explanation of the possibility of a difference between the getCodeBase() call on a jar'ed applet and an unjar'ed one.


PS: dont judge me by my "testese". things, again, are not what they seem.

Adrian






On Wednesday14,Nov 2007, at 1:27 PM, Joshua Smith wrote:

RTFM. You attitude is a bit much from someone who clearly is not reading the documentation. What you are trying to do is very straightforward, and not at all tricky.

getCodeBase gives you the web server address where your applet .jar is stored. It is a parameter to the APPLET tag, and it defaults to the document base (the web address where the page loading the applet is stored).

It has nothing whatsoever to do with the way you name your classes on the .jar file.

-Joshua

On Nov 14, 2007, at 12:00 PM, Adrian Bartholomew wrote:

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>)
 >Re: on demand loading (From: Adrian Bartholomew <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.