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!
JavaEditors IDEs

Avatar of undefined
Last Comment
CEHJ

8/22/2022 - Mon
MicheleMarcon

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 ;))
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
CEHJ

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
CEHJ

>>Fortunately it's firmaly build on Ant
=
Fortunately it's firmly built on Ant
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
pbenito

ASKER
Sorry for the delay - been on travel.
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.
CEHJ

:-)
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.