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

Urgent: Error regarding HTMLB.jar

Hi,

I have created a new portal application project in NWDS.

Then I am creating JSPDynPage Component.As soon as I create the JSPDynPage component,it shows to errors

(1)The project was not built due to classpath errors(incomplete or involved in a cycle)

(2)Missing required library: 'C:Program Files/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/com.sapportals.htmlb/_comp/gen/default/public/default/lib/java/htmlb.jar'.

I have installed NWDS in C:\Program files on my local machine.

I have downloaded the htmlb.jar files from portal browser(ROOT/WEB-INF/portal/portalapps/com.sap.portal.htmlb ) and included it as a external jar.But the problem still persists.

Is it trying to find the htmlb.jar in the plugin folder of NWDS?

Can anybody help me on this issue?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 24, 2005 at 04:25 AM

    Hi Parag,

    When i traced the same path in my system i could find the hmlb.jar file in that particular location.

    I suggest u to just trace the path and if u dont find the htmlb.jar then try copying the jar in that folder and try exporting and uploading to the portal and check.

    <i>'C:ProgramFiles/SAP/JDT/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/com.sapportals.htmlb/_comp/gen/default/public/default/lib/java/htmlb.jar'.</i>

    Hope this helps.

    regards,

    Joshua Kiran

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Parag,

      to throw some further light on this issue:

      The reason why the problem existed seems to be an issue with an older NWDS or with just a buggy installation. The file should be there. Anyhow, in the .classpath file, there has been a reference to this file, and this reference did not work. This situation has not changed when you imported the HTMLB from portapps.

      About your further question how to use JARs in general: For some very basic things NWDS comes with a set of libraries which are also automatically activated as classpath references when you create a portal project. HTMLB is on example of these.

      Generally, you need many more in any non-trivial, portal services / API's using self developed application.

      The known most productive settings are:

      a) Copy the .../WEB-INF/portal/portalapps (as well as other binaries needed, under /WEB-INF as well as the J2EE binaries (logging etc)) to your local drive (if you don't have a local installation). Create about two classpath variables (for instance SAP_J2EE and SAP_PORTAL) pointing to the corresponding folders.

      b) Use ClassLocator: http://sourceforge.net/projects/classlocator - with this you can index all the JARs, and if you need for instance INavigationHelperService or whatever, just type it, right click on the red-underlined word, call ClassLocator for it, check if it has chosen the right JAR - and you're ready. This is as fast as it can be...

      c) After having resolved all references, before deploying, you'll have to complete the SharingReference's. For this, you can now open the .classpath file, where you will find that ClassLocator has been nice enough to use variables (which makes it very easy to share the project among different developers). Now you can copy the different portal application folder names and insert them as SharingReference's.

      Hope it helps

      Detlev

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2005 at 11:58 PM

    Hi Parag,

    Try to import htmlbbridge.jar it might help you

    Hope it helps,

    Yoav

    Add a comment
    10|10000 characters needed characters exceeded

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.