cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling Classpath

Former Member
0 Kudos

Hello all,

I am currently trying to use some external library. Those libraries need to be prepended to the classpath of the application server.

How can I do that?

Antoine

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

check thread: "Adding libs to ejb.jar"

Someone (Svetoslav) gave probably the answer.

Hope that helps

M.

Former Member
0 Kudos

This is not solving the issue as SAP provided libraries are still taking precedence in the classpath.

Antoine

guru_subramanianb
Active Contributor
0 Kudos

Hi,

Then try to give it in web.xml in your web module project & deploy.

Rdgs,

Guru

guru_subramanianb
Active Contributor
0 Kudos

Hi Antoine,

Jus right click your project in the Studio IDE.Goto properties and select add external jars option.

Select the reqd jar file from your local system and import it to the studio.By doing so you are setting the class path for the project.

Hope it helps.

Rdgs,

G

Former Member
0 Kudos

Hi Antoine,

What type of application are you developing?

Former Member
0 Kudos

I am developping a J2EE application made of an EAR that contains a WAR file.

Antoine

Former Member
0 Kudos

Hi,

you just add them to "Java Build Path" in project properties as external jars.

Then the developer studio will include them when you create the war archive

Raja

Former Member
0 Kudos

Hi Guru,

That's unbfortunately not working with application build and deploy with CBS.

The java build path will control the claspath during build time not during runtime. Also Development component automatic build ignores those settings and delete them.

Once the WAR is built, you have to deploy it and to chnage the classpath.

For example in BEA, you do that by setting a properties in the weblogic.xml file.

ANTOINE