Hi java gurus,
Sorry to post this question to the list, but I thought other developers might
find the responses useful. What I found online was way over my head. Besides,
everyone here's so gosh darn friendly....;-}
I have a question on how java classes and packages are packaged into an
i-appli:
Say class A uses class B.
Class B uses package C, which may be a 3rd party package.
Class A also uses package C.
To be a little more concrete - say my i-appli (A) uses a data class (B). B
makes use of an XML package like DOM (C). Data returned by B is in XML format,
so the Applet/appli needs C in order to make sense of it.
1. How do I get my i-appli to use C? I understand that on my PC I put the
package C in my classpath and it gets loaded - but on i-mode, the package has
to be loaded in with the i-appli jar, right? Do I need to put all the
necessary classes & packages in the same jar? Or does the compiler or another
tool do that?
2. Is the preverifier involved in this? Just what does the preverifier do,
anyway?
3. If my classes (A & B) make use of only one class from package C, is all of
package C be included anyway? What if my classes use only one method of one
class? Would something like Java Blender trim unused stuff (classes & methods)
from my i-appli jar?
4. Would it be any different in terms of jar size if all the classes were in
the same package?
Thanks in advance,
--Jason
__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/
[ Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/ ]
Received on Sat Sep 15 09:43:04 2001