This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Using Netbeans 4.0beta1, I tried creating a New Project with existing sources and existing ANT script. During the New Project wizard, I added all the files from our <project_base_dir>/lib folder when asked for the Classpath setting. Some of those files were .dll and .so along with the 3rd party jar files. At the end of the New Project wizard, when the IDE tried opening the project, it gave a InvocationTargetException. I think it's because it was trying to parse the .dll and .so files as library jar or folder files.
Created attachment 17128 [details] My Netbeans4.0beta1 log file
Yes, it is trying to handle the dll and the so files as cp roots (folder, it is not an archive file). The FreeformProject should remove them from classpath.
Of course the user was wrong to add *.so files to the classpath, but this is about robustness. Works for me in a trunk build (did not try in the beta, but I am sure there have been changes made since the beta). Made a new freeform project, specified some random XML file to add to the classpath. Freeform CP contained entries ending in a slash such as file:/..../foo.xml/, i.e. as if they were dirs, which is fine as far as I am concerned; the CP entry is harmless. I did not get any stack traces or errors.
closed