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!
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!
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>>Fortunately it's firmaly build on Ant
=
Fortunately it's firmly built on Ant
=
Fortunately it's firmly built on Ant
ASKER
Sorry for the delay - been on travel.
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.
:-)
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 ;))