Hi,
I'm trying to create a reverse proxy filter. In my Java code, at the beginning, I am trying to import serveral libraries.
*******************************************************
import javax.servlet.*;
import javax.servlet.http*;
********************************************************
However, I get this error, 'import java.x.servlet cannot be resolved.' Any ideas on this issue? As result of this, I think its affecting the rest of the file.
Regards,
Jin Bae
Hi,
You have to set the Java Build Path property correctly.
Right Click the Project name in the NetWeaver Developer Studio.
Click Properties.
Choose Java Build Path in the Pop up dialog box.
Choose Libraries tab.
Choose Add Variable
Choose TSSAP_JAVAX_HOME and click Extend.
Click Extend.
Choose lib/servlet.jar.
Click OK.
Now the build path is set properly.
In your source code, choose Organize imports by right clicking.
You should have the class resolved.
Thanks,
Ads.
Add a comment