cancel
Showing results for 
Search instead for 
Did you mean: 

class path incomplete at first portal component project

Former Member
0 Kudos

Hello out there,

i have NWDS-SP09 and hav created an Portal-App-Project. There i created a new portal-component (JSPDynPage). The generated class looks as following:

package com.kpmg.portaldev.jspdynpages;

import com.sapportals.portal.prt.component.*;

import com.sapportals.htmlb.*;

import com.sapportals.htmlb.enum.*;

import com.sapportals.htmlb.event.*;

import com.sapportals.htmlb.page.*;

import com.sapportals.portal.htmlb.page.*;

import com.sapportals.portal.prt.component.*;

public class analyzeAuthority extends PageProcessorComponent {

public DynPage getPage(){

return new analyzeAuthorityDynPage();

}

public static class analyzeAuthorityDynPage extends JSPDynPage{

public void doInitialization(){

}

public void doProcessAfterInput() throws PageException {

}

public void doProcessBeforeOutput() throws PageException {

this.setJspName("analyzeAuthority.jsp");

}

}

}

I added this JAR to the project (in the properties ofthe project)-classpath:ECLIPSE_HOME/plugins/com.sap.ep.applicationDevelopment_7.00/com.sap.portal.htmlb_api.jar

but i get this error and cannot build the project:The project was not built since its classpath is incomplete. Cannot find the class file for com.sapportals.htmlb.page.DynPage. Fix the classpath then try rebuilding this project. PortalDevelopment1

Any ideas ?

Is there an other location to setup the classpath ?

Best regards,

André

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I think you need to add the jar file for Dynpage. Use the jarfinder to find the jar and add it to your project.

JAR FINDER

/people/kirupanand.venkatapathi2/blog/2006/01/02/using-jar-class-finder

search for Dynpage using the jar finder.

Former Member
0 Kudos

Hi,

Try using the jar file 'htmlb.jar'. You will find it at WDRUNTIME\com.sap.tc.ap\comp\SAP_JTECHS\DCs\sap.com\com.sapportals.htmlb\_comp\gen\default\public\default\lib\java.

~cheers

avadh

Former Member
0 Kudos

Hi avadh,

now it works, thanks.

The Java-World of SAP is not as well documented as the Abap-World.....SAP has forgotten something during it's own evolution ;-(

kindly regards,

André

Answers (3)

Answers (3)

roberto_tagliento
Active Contributor
0 Kudos

Try

PORTAL_HOME/com.sap.portal.htmlb_api.jar

Insert this PORTAL_HOME variable, the value must be something like this:

C:\$YOUR_NWDS_DIR_INST$\JDT\eclipse\plugins\com.sap.ep.applicationDevelopment\

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Andre,

Try once like this

add com.sap.portal.htmlb_api.jar to your project.

1. Right-click the project in Eclipse or SAP NetWeaver Developer Studio.

2. Select Properties.

3. Choose Java build path -> Libraries -> Add Variable -> Select variable WD_RUNTIME -> Extend -> com.sap.portal.htmlb -> lib ->com.sap.portal.htmlb_api.jar

Regards, Suresh KB

Former Member
0 Kudos

Dear Suresh,

thanks, but there is no path "com.sap.portal.htmlb".

I used the htmlb_api.jar from the location given in my first post:

WD_RUNTIME/com.sap.ep.applicationDevelopment_7.0/com.sap.portal.htmlb_api.jar but it does not work. What else could be missing ?

Best regards,

André

Former Member
0 Kudos

Hi,

No need to add the that jar .

That was already there I think.

Please check once.

Thanks,

Lohi.