Dobry den, takze jestli tomu dobre rozumim, tak package se objevi v seznamu az tehdy, kdyz z nej nactu nejakou tridu napr. pomoci Class.forName(). Pak je to opravdu k nicemu.
Diky za info. mp. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vilhelm, Robert Sent: Wednesday, September 07, 2005 11:36 AM To: Java Subject: **SPAM - S by SCORE** -RE: test knihoven pro radne spusteni programu Dobry den Propad dve nebude fungovat (vzdy) pro otestovani pritomnosti urciteho package. Metada java.lang.Package.getPackages() vraci seznam jiz nactenych baliku classloaderem. "Tedy testoval byste neco, co jiz otestovane je." Tato metoda nevraci seznam vsech dostupnych baliku v classpath resp. vsech, ktery je classloader schopen nacist Robert Vilhelm -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Michal Palicka Sent: Mittwoch, 7. September 2005 11:22 To: Java Subject: RE: test knihoven pro radne spusteni programu Dobry den, (1) asi bych z kazde knihovny vybral jednu charakteristickou tridu a pri startu aplikace bych volal: Class.forName(name); Pokud budou vsechny charakteristicke tridy nalezeny, je dostatecne pravdepodobne, ze jsou knihovny v poradku. (2) Dalsi moznosti je testovat pritomnost baliku napr. pomoci java.lang.Package.getPackages(). mp. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tomas Beranek Sent: Wednesday, September 07, 2005 11:03 AM To: Konference Java Subject: test knihoven pro radne spusteni programu Zdravim, nenapada Vas zpusob, jak na zacatku pri spusteni aplikace otestovat, ze jsou nahrany vsechny potrebne knihovny(*.jar) pro radny chod aplikace. Nektere z knihoven jsou pouzity az v prubehu behu aplikace a ne hned pri spusteni, tzn. ze exceptiona vyskoci az v dobe, kdy danou knihovnu potrebuji. potreboval bych na zacatku zjistit, zda-li je vse radne pripraveno a v pripade, ze neni, aplikaci s chybovou hlaskou ukoncit. nenapada me nic rozumneho.(tak jako obvykle :-)) diky za napady Tomas -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.18/89 - Release Date: 2.9.2005 Diese E-Mail inklusive aller Anlagen ist ausschließlich für den Adressaten bestimmt und enthält möglicherweise vertrauliche Informationen. Falls der Empfänger dieser Nachricht nicht der beabsichtigte Adressat oder ein für den Mail-Zugang zuständiger Mitarbeiter oder Vertreter ist, werden Sie hiermit darauf aufmerksam gemacht, dass jede Weitergabe, Verteilung, Vervielfältigung oder sonstige Nutzung dieser Nachricht oder ihrer Anlagen verboten ist. Wenn Sie diese Nachricht aus Versehen erhalten haben, informieren Sie bitte den Absender per E-Mail und löschen Sie diese E-Mail aus Ihrem Computer. Zur rechtsverbindlichen Zeichnung für die Aareal Hypotheken-Management GmbH sind die Unterschriften von zwei Zeichnungsberechtigten erforderlich. This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. The signatures of two authorised persons are required for legally binding acts on behalf of Aareal Hypotheken-Management GmbH. Diese E-Mail inklusive aller Anlagen ist ausschließlich für den Adressaten bestimmt und enthält möglicherweise vertrauliche Informationen. Falls der Empfänger dieser Nachricht nicht der beabsichtigte Adressat oder ein für den Mail-Zugang zuständiger Mitarbeiter oder Vertreter ist, werden Sie hiermit darauf aufmerksam gemacht, dass jede Weitergabe, Verteilung, Vervielfältigung oder sonstige Nutzung dieser Nachricht oder ihrer Anlagen verboten ist. Wenn Sie diese Nachricht aus Versehen erhalten haben, informieren Sie bitte den Absender per E-Mail und löschen Sie diese E-Mail aus Ihrem Computer. Zur rechtsverbindlichen Zeichnung für die Aareal Hypotheken-Management GmbH sind die Unterschriften von zwei Zeichnungsberechtigten erforderlich. This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. The signatures of two authorised persons are required for legally binding acts on behalf of Aareal Hypotheken-Management GmbH.
