You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by MarioF <oc...@gmail.com> on 2009/11/05 10:08:34 UTC

How load new .jar libraries?

Hi all,

In my project I need that ofbiz load some new .jar libraries. If I copy all
of this .jar libraries in one build/lib directory the project works fine,
but I think that it's better to have all of this libraries in a separate
directory. How can I say to Ofbiz that it has to load the .jar files in an
specific directory?

Thanks in advance,
Mario.
-- 
View this message in context: http://n4.nabble.com/How-load-new-jar-libraries-tp489737p489737.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: How load new .jar libraries?

Posted by MarioF <oc...@gmail.com>.
Thanks, that was the problem ;) Now works fine.



Matthieu Bollot-4 wrote:
> 
> Le jeudi 05 novembre 2009 à 01:22 -0800, MarioF a écrit :
>> Thanks Mridul. Does that works in the hot-deploy directory? If I move all
>> the
>> libraries to a lib directory inside hot-deploy/myStore/lib Ofbiz doesn't
>> find the classes, but if I have the .jar files in
>> hot-deploy/mystore/build/lib all works fine.
> 
> I think that what you are looking for is in ofbiz-component.xml :
> 
> <!-- load single or multiple external libraries -->
>     <classpath type="jar" location="lib/*"/>
> 
> 
> 
> 

-- 
View this message in context: http://n4.nabble.com/How-load-new-jar-libraries-tp489737p492852.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: How load new .jar libraries?

Posted by Matthieu Bollot <ma...@nereide.biz>.
Le jeudi 05 novembre 2009 à 01:22 -0800, MarioF a écrit :
> Thanks Mridul. Does that works in the hot-deploy directory? If I move all the
> libraries to a lib directory inside hot-deploy/myStore/lib Ofbiz doesn't
> find the classes, but if I have the .jar files in
> hot-deploy/mystore/build/lib all works fine.

I think that what you are looking for is in ofbiz-component.xml :

<!-- load single or multiple external libraries -->
    <classpath type="jar" location="lib/*"/>



Re: How load new .jar libraries?

Posted by MarioF <oc...@gmail.com>.
Thanks Mridul. Does that works in the hot-deploy directory? If I move all the
libraries to a lib directory inside hot-deploy/myStore/lib Ofbiz doesn't
find the classes, but if I have the .jar files in
hot-deploy/mystore/build/lib all works fine.





Mridul Pathak-2 wrote:
> 
> A "lib" directory (part of standard directory structure) inside any
> component is meant for adding external jars.  Refer framework components,
> applications/accounting, applications/content.
> 
> -- 
> Thanks & Regards
> Mridul Pathak
> Hotwax Media
> http://www.hotwaxmedia.com
> mridul.pathak@hotwaxmedia.com
> -------------------------------------------------
> direct: +91 - 942.592.6892
> 
> On Thu, Nov 5, 2009 at 2:38 PM, MarioF <oc...@gmail.com> wrote:
> 
>>
>> Hi all,
>>
>> In my project I need that ofbiz load some new .jar libraries. If I copy
>> all
>> of this .jar libraries in one build/lib directory the project works fine,
>> but I think that it's better to have all of this libraries in a separate
>> directory. How can I say to Ofbiz that it has to load the .jar files in
>> an
>> specific directory?
>>
>> Thanks in advance,
>> Mario.
>> --
>> View this message in context:
>> http://n4.nabble.com/How-load-new-jar-libraries-tp489737p489737.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
> 
> 

-- 
View this message in context: http://n4.nabble.com/How-load-new-jar-libraries-tp489737p491450.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: How load new .jar libraries?

Posted by Mridul Pathak <mr...@hotwaxmedia.com>.
A "lib" directory (part of standard directory structure) inside any
component is meant for adding external jars.  Refer framework components,
applications/accounting, applications/content.

-- 
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
mridul.pathak@hotwaxmedia.com
-------------------------------------------------
direct: +91 - 942.592.6892

On Thu, Nov 5, 2009 at 2:38 PM, MarioF <oc...@gmail.com> wrote:

>
> Hi all,
>
> In my project I need that ofbiz load some new .jar libraries. If I copy all
> of this .jar libraries in one build/lib directory the project works fine,
> but I think that it's better to have all of this libraries in a separate
> directory. How can I say to Ofbiz that it has to load the .jar files in an
> specific directory?
>
> Thanks in advance,
> Mario.
> --
> View this message in context:
> http://n4.nabble.com/How-load-new-jar-libraries-tp489737p489737.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>