Link to home
Start Free TrialLog in
Avatar of static86
static86

asked on

java import problem

I have imported jar library to my project, I can use it, everything seems to work just fine.
But when I press "clean and build project" I am receiving errors that package net.htmlparser.jericho does not exist
import net.htmlparser.jericho.*;

Why am I getting this error?
Avatar of for_yan
for_yan
Flag of United States of America image

Do you have the jar that contains that package?
Which IDE are you using?
Avatar of Mick Barry
the jar containing that package must not be in your build path
Does IDE recognize the classes in your code?
Avatar of static86
static86

ASKER

I'm using NetBeans. It recognizes classes in my code. I have imported this library from different location than project.
When I type import "net." IDE suggests this import! no errors here.
how can I check/edit/do anything with build path?
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Place as first line of your main method
System.out.println(System.getProperty("java.class.path"));

Open in new window