cancel
Showing results for 
Search instead for 
Did you mean: 

eclipse -UrGeNt

Former Member
0 Kudos

hi ,

i am using Eclipse to build the java iView and i am getting a problem with the jar files for xml.

i have added the xerces.jar and xmlParserAPIs.jar , and i am able to use the API ... but , that is only added to the current workspace but not to the project ...

The next time open the same project , I do not find the jar files added , i have to goto java build and add jar files again....

Is there a way that , these 2 jar files can be added permanently to the project?

Please reply soon ...

Thank you,

Avinash

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi teecheu ,

I have tried all that(using "add external jars"....) . My server here is my TOMCAT PDk . How do i set in the details ...and how do i then deply my application ?

waiting for reply...

avi

Former Member
0 Kudos

Hi Avi,

1. Add the two JAR in <CATALINA_HOME>\common\lib

2. Restart Tomcat

3. Compile your source and build your application as a PAR file.

4. Deploy the PAR and run and application (In your IDE, there should be an option called "Deploy and Run").

- Teecheu

Former Member
0 Kudos

Hi ,

I am actually using the EP5.0 . I cannot add an entry to the .classpath file. here is there is no PORTAL-INF ...

I am adding jar files to the project but it goes off when i restart the project... I want to do it permanently....

what should i do?

please reply as soon as possible...

Thank you ,

Avinash

Former Member
0 Kudos

Hi,

I have not worked on EP5.0 for a while, but if I am not mistaken, if you include the two JAR files in Java Build Path's "Add External JARs...", the path that refers to the JAR files should not go away unless you change the location of the JAR.

If you run into a problem during runtime, it could be that your server does not have the two JAR files that you mentioned.

Hope it helps,

- Teecheu

detlev_beutner
Active Contributor
0 Kudos

Hi Avinash,

you should give some more information:

- how did you "add" the jar's? If you have added them into the project (also on the file system), they cannot be aways afterwards.

- how did you set up the build path? Eclipse uses a ".classpath" file, where the build path is described in XML, as absolute path, or variable, or variable extension, or... Anyhow, also this file will always stay the same, if you don't do weird things.

- to permanently add the JARs to the project, add them into dist/PORTAL-INF/exlib or dist/PORTAL-INF/private/exlib dir.

- this holds for EP6 SP2 / Eclipse 2.1.X. Is this your environment?

Hope it helps

Detlev