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

External JAR File

Eclipse 2.1.0 - EP6

How can I put an external JAR file in my iview's JAR.

I tried to import in my PORTAL-INF/lib and it seems good. But how can I say to code to use this and not my JavaBuiltPAth?

Thanks a lot.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 10, 2004 at 07:36 PM

    Hi Maria,

    you can put them into lib / private/lib / exlib / private/exlib, also see Adding Jar files in PORTAL-INF

    The second question I do not really get - the code at runtime uses a classloader which looks also within the above give folders.

    At compile time, Eclipse uses the given BuildPath. You can add the libs from the lib dir chosen directly into the BuildPath.

    Hope it helps


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      Your posting is a little confusing....

      > I tried to put my class in lib or private/lib with my

      > Build Path looking the JAR file (external class).

      You have to put Your Classes (comp. java-Files) in Your <project>classes.api folder (done by eclipse automicly)


      > I can create my iview .JAR without problems but when

      > I try to execute my iview in Portail, I have this

      > message:


      You create a par file (pack. for the hole iView) not jar (done by eclipse automicly)

      > Exception ID:09:50_13/12/04_0001

      > Caused by: java.lang.NoClassDefFoundError:


      > What I have to do to find this class in Portail?


      Please check Your eclipse setting one again and read Detlevs posting carefully also again

      The portal will find Your jars in the according folder (\dist\PORTAL-INF\lib). As well as Your classes...

      Try it


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.