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?
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?
Do you have the jar that contains that package?
Which IDE are you using?
the jar containing that package must not be in your build path
Does IDE recognize the classes in your code?
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Place as first line of your main method
System.out.println(System.getProperty("java.class.path"));