adding jars to classpath

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

adding jars to classpath

lahmar
Hi,

I would like to add jars to my project to use HtmlUnit (browser for Java programs).
Is it the way :
in the home of project, i add in .classpath this tag :
"<classpathentry kind="lib" path="C:\htmlUnit\htmlunit-2.4\lib\commons-codec-1.3.jar"/>"

Thks and best regards.
Reply | Threaded
Open this post in threaded view
|

Re: adding jars to classpath

BJ Freeman
all jars for ofbiz must reside below the root for ofbiz.
take a look at the build.xml and ofbiz-component.xml files

lahmar sent the following on 4/14/2009 1:37 AM:

> Hi,
>
> I would like to add jars to my project to use HtmlUnit (browser for Java
> programs).
> Is it the way :
> in the home of project, i add in .classpath this tag :
> "<classpathentry kind="lib"
> path="C:\htmlUnit\htmlunit-2.4\lib\commons-codec-1.3.jar"/>"
>
> Thks and best regards.
Reply | Threaded
Open this post in threaded view
|

Re: adding jars to classpath

Jacques Le Roux
Administrator
In reply to this post by lahmar
This file is only used by Eclipse, it has not other effects than allows Eclipse to build/run/debug OFBiz correctly

Jacques

From: "lahmar" <[hidden email]>

> Hi,
>
> I would like to add jars to my project to use HtmlUnit (browser for Java
> programs).
> Is it the way :
> in the home of project, i add in .classpath this tag :
> "<classpathentry kind="lib"
> path="C:\htmlUnit\htmlunit-2.4\lib\commons-codec-1.3.jar"/>"
>
> Thks and best regards.
> --
> View this message in context: http://www.nabble.com/adding-jars-to-classpath-tp23035411p23035411.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>

Reply | Threaded
Open this post in threaded view
|

Re: adding jars to classpath

lahmar
Thks for your response,
I found the solution:
i must add in the properties of the propertis project, jars files into libraries (add external jar files button) in Java Build Path.

thks again.
jacques.le.roux wrote
This file is only used by Eclipse, it has not other effects than allows Eclipse to build/run/debug OFBiz correctly

Jacques

From: "lahmar" <lahmar.abdelouahed@gmail.com>
> Hi,
>
> I would like to add jars to my project to use HtmlUnit (browser for Java
> programs).
> Is it the way :
> in the home of project, i add in .classpath this tag :
> "<classpathentry kind="lib"
> path="C:\htmlUnit\htmlunit-2.4\lib\commons-codec-1.3.jar"/>"
>
> Thks and best regards.
> --
> View this message in context: http://www.nabble.com/adding-jars-to-classpath-tp23035411p23035411.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>