Link to home
Start Free TrialLog in
Avatar of pbenito
pbenito

asked on

Why can't I import the log4j.jar library?

Hi,
 
  I have a standard install of NetBeans 6.0.1.  I have two projects.  The first project I started, I was able to import the log4j.jar file and use it to log just fine.  When I created a second project, I go to import the library the same way.  After I click OK, the import statements produce an error during compilation and when I go to check the libraries loaded in NetBeans, my log4j.jar isn't there anymore!  Any suggestions?

Thanks!
Avatar of MicheleMarcon
MicheleMarcon
Flag of Italy image

Did you try with another project?

Can you add other libraries to the same project?

You may create a new project that clones your second project, or consider reinstall Netbeans (or wait another week for Netbeans 6.1 ;))
Avatar of pbenito
pbenito

ASKER

Yes, I tried another project and it worked fine.  I've also added other libs to the same project with no issues.

The problem with creating a new one that clones the old one is that the project is being checked out via SVN - we we'd have to kill the entire SVN project and start a new one.
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland 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
>>Fortunately it's firmaly build on Ant
=
Fortunately it's firmly built on Ant
Avatar of pbenito

ASKER

Sorry for the delay - been on travel.
Avatar of pbenito

ASKER

It turns out that one of my xml config files was not getting updated when I added or deleted libraries to the specific project.  Looks like my netbeans project is corrupt.  I had to manually add/delete the classpath in my config file in order for the import to work properly.
:-)