cancel
Showing results for 
Search instead for 
Did you mean: 

import problem in j2ee web module project

former_member331989
Participant
0 Kudos

Hi experts,

j2ee web module project gets error for an import line below.

I added necessary jar file to fix problem using context menu properties->java build path ->Library->add external jar

But problem was not fixed.Does it need different method to add jar or what must i do to solve problem?

Regards.

 

import

javax.faces.context.FacesContext;

Accepted Solutions (1)

Accepted Solutions (1)

saar_dagan
Employee
Employee
0 Kudos

Hi Cemil,

Highlight java.faces.context.FacesContext - right click it and press the "Class JAR locator" (small green icon).

it will find your JAR, select your project from the dropdown in the bottom of the dialog and press ok.

now check if it works.

Best Regards,

Saar

former_member331989
Participant
0 Kudos

Hi Dagan,

This is nwds 7.0 project.

I did not find "Class JAR locator" in context menu on highlight and right click of java.faces.context.FacesContext  like picture below.

saar_dagan
Employee
Employee
0 Kudos

Hi Cemil,

Which JAR did you import exactly?

And what is the compiler version in the NWDS?

regards,

Saar

former_member331989
Participant
0 Kudos

Hi Dagan,

JAR : jsf-api.jar

JDK : j2sdk1.4.2.16

NWDS version: 7.0.21

saar_dagan
Employee
Employee
0 Kudos

Hi Cemil,

I think you might be using a newer jar that only fits 1.5 and above.

try using this myfaces-api-1.1.6.jar

regards,

Saar

Answers (0)