Skip to Content
author's profile photo Former Member
Former Member

eclipse -UrGeNt

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Feb 02, 2005 at 08:42 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 02, 2005 at 09:03 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Feb 02, 2005 at 10:19 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.