logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Judith\\PROTEGYS" <olivier.jud...@protegys.com>
Subject RE: re : log4j jar file problem
Date Fri, 07 Dec 2001 11:40:26 GMT
i add logj in my manifest and now when i execute it , it say me that it
could not found my main class:

this is my MANIFEST.MF file

Manifest-Version: 1.0
Main-Class: BPLPaiement
Class-Path:
log4j.jar:mail.jar:activation.jar:xerces.jar:jaxp.jar:sax.jar:j2ee.jar

-----Message d'origine-----
De : Thomas SMETS [mailto:tsmets@altern.org]
Envoyé : vendredi 7 décembre 2001 12:29
À : olivier.judith@protegys.com
Cc : Log4j
Objet : Re: re : log4j jar file problem



Try to make an uncompressed jar ?
jar c0f
AFAI can remeber

Can you make a little pgrm that does smthg like this :

String[] ClassNames = new String[] {"Class1", "Class2"};
for (int i = 0; i < ClassNames.length; i++)
    Class.forName(ClassNames[i]);

Does it also give the problem ?
Try to use ANT or make to keep environment as stable as possible...

Thomas,




----- Original Message -----
From: "Olivier Judith\PROTEGYS" <olivier.judith@protegys.com>
To: "'Thomas SMETS'" <tsmets@altern.org>
Sent: Friday, December 07, 2001 11:55 AM
Subject: RE: re : log4j jar file problem


> i do it too.
>
> -----Message d'origine-----
> De : Thomas SMETS [mailto:tsmets@altern.org]
> Envoyé : vendredi 7 décembre 2001 10:05
> À : olivier.judith@protegys.com
> Cc : Log4j
> Objet : Re: re : log4j jar file problem
>
>
>
> why not
> java -cp ${yr_classpath} -jar myjar.jar .
> ?
>
> Thomas,
>
>
> ----- Original Message -----
> From: "Olivier Judith\PROTEGYS" <olivier.judith@protegys.com>
> To: <tsmets@altern.org>
> Sent: Friday, December 07, 2001 9:53 AM
> Subject: RE: re : log4j jar file problem
>
>
> > this my classpath
> > /usr/local/jsdk/lib
> > i have this jar : sax.jar, jaxp.jar, log4j.jar, activation.jar,
mail.jar,
> > j2ee.jar, xerces.jar
> >
> > i compile it with : javac -classpath
> >
>
/usr/local/jsdk/lib/sax.jar:/usr/local/jsdk/lib/jaxp.jar:/usr/local/jsdk/lib
> >
>
/log4j.jar:/usr/local/jsdk/lib/activation.jar:/usr/local/jsdk/lib/mail.jar:/
> >
>
usr/local/jsdk/lib/mail.jar:/usr/local/jsdk/lib/j2ee.jar:/usr/local/jsdk/lib
> > /xerces.jar mymainclass.
> >
> > i launch the application and it work
> >
> > i make a : jar cfm bpl.jar MANIFEST.MF *.class in my source directory
> > i launch a java -jar myjar.jar . and you what follow.
> >
> > -----Message d'origine-----
> > De : tsmets@altern.org [mailto:tsmets@altern.org]
> > Envoye : vendredi 7 decembre 2001 01:06
> > A : olivier.judith@protegys.com
> > Objet : re : log4j jar file problem
> >
> >
> >
> >
> > Olivier,
> >
> > Could you validate yr classpath ?
> > May be show us the command line you invoke ?
> >
> > Thomas,
> >
> >
>
>
>
>



--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message