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